How i can create a box plot for all the character variable.
For sashelp.cars I want to see the distribution of INVOICE with respect to all the character variable such as MAKE, MODEL, TYPE, ORIGIN and DriveTrain. Here i want to create a boxplot to find the distribution.
Hi @dchaubey1,
do you want to have all the character variables in one box plot, or one box plot per variable?
Hey @dchaubey1! There are a few ways you can visualize categories with box plots. If you want to simply break out your data by a single category, then the category data role is what you want:
If you want to visualize it by multiple categories, such as a matrix of box plots, you want to use the lattice rows or lattice columns data roles:
You can even add categories to your lattice roles:
Hi @dchaubey1,
alternatively you could use an "calculated item" to concatenate the different character variables and then do a box plot with the "calculated item" as category.
So you could have all in one box plot, though with many combinations this may be a confusing picture.
Best
Markus
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.
Find more tutorials on the SAS Users YouTube channel.