As a learning exercise, I'm trying to create a HBAR chart that shows the mean & sum of salary for each gender next to the bars... But I want bar lengths to reflect the frequency of gender (not sum or mean of salary).
Could not have both the salary based stats and gender-freq-driven bars. Any ideas?
Here is my code (yes the orion dataset from online Base training).
proc gchart data=orion.nonsales;
hbar gender /sumvar= salary freq mean sum;
format salary dollar12.;
where gender in ('F' 'M');
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.