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
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.