Hi.
I am trying to just do a singular box plot for the data below - the box plot shows in the default colours but i want to change the blue of the box plot to pink, also i have seen elsewhere people have put a table inside the graph stating the quarters and the medium, how do i do that as well?
here is my code:
PROC IMPORT
DATAFILE = '/home/imdb-videogames.csv'
OUT = Videogame_data
DBMS = CSV
REPLACE;
RUN;
DATA Videogame_data;
SET Videogame_data;
IF NOT MISSING(rating) AND NOT MISSING(votes) AND NOT MISSING(certificate);
RUN;
PROC SORT DATA=Videogame_data OUT=clean_videogamedata NODUPKEY;
BY name;
RUN;
DATA Videogame_data;
SET clean_videogamedata;
RUN;
DATA TITLES;
SET clean_videogamedata;
words = COUNTW(name,' ');
RUN;
PROC PRINT DATA=TITLES;
VAR name words;
TITLE 'Number of Words in each Video Game Title';
RUN;
PROC MEANS DATA=TITLES NWAY NOPRINT;
VAR WORDS;
OUTPUT OUT = MEANS (DROP = _TYPE_ _FREQ_)
N = NUMBER_OF_OBSERVATIONS
MEAN = AVERAGE
;
RUN;
PROC PRINT DATA=MEANS NOOBS;
TITLE 'Average Number of Words Per Video Game Title';
RUN;
PROC sgplot DATA=TITLES;
vbox words;
styleattrs datacolors=(pink) datacontrastcolors=(black);
run;
here is my outcome (statistically is fine - visually is not how i want it).
Thank you in advance for any help here 🙂