![]() ![]() Some stuff like that can be done with syntax indeed but it can be hard and may sometimes require restructuring your data. By Ruben Geert van den Berg on April 30th, 2021.I can do it by manually amending the graph, but it would be nice if it would be in the syntax already. ![]() So it would be great if I could automatically display the number per age bracket and the corresponding percentage and if possible also the total of all the age brackets. SCALE: linear(dim(1), dataMinimum(), dataMaximum())ĮLEMENT: interval.stack(position(summary.percent(COUNT))), color.interior(Age)) GUIDE: text.title(label("How old are you?")) GRAPHDATASET NAME="graphdataset" VARIABLES=Age COUNT() MISSING=LISTWISE Is it possible in the syntax to indicate that I want to see the numbers and percent? And maybe also automatically indicate the total number of cases used for the graph? I sorted it out via a table and then pulling it into excel and make a graph there :-). In any case, I don't think there's any quick and simple option for getting it done but correct me if you do find one. There's a tiny hack for achieving the same results (less tedious) without VARSTOCASES that I covered in Clustered Bar Chart over Multiple Variables. This is usually done with VARSTOCASES but that's pretty tedious. Then I think you must restructure you data and stack the 3 variables on top of each other. Would you like one bar showing the frequency for each answer over the 3 variables?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |