- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi @dchaubey1,
do you want to have all the character variables in one box plot, or one box plot per variable?
Like posts you agree with or like. Mark helpful answers as “accepted solutions”. Generally have a look at https://communities.sas.com/t5/Getting-Started/tkb-p/community_articles
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Like posts you agree with or like. Mark helpful answers as “accepted solutions”. Generally have a look at https://communities.sas.com/t5/Getting-Started/tkb-p/community_articles