I'm a big fan of SPLOMs
Does anyone know of SPLOM packages that can support boxplots for categorical data? It looks really weird when you have scatterplots for columns like "gender"
Categorical Scatter PlotsBoth strip plots and swarm plots are essentially scatter plots where one variable is categorical. I like to use them as additions to other kinds of plots, which we'll discuss below as they are useful for quickly visualizing the number of data points in a group.
Mosaic plots are good for comaparing two categorical variables, particularly if you have a natural sorting or want to sort by size.
Frequency tables, pie charts, and bar charts are the most appropriate graphical displays for categorical variables.
Most two-dimensional graphs consist of one quantitative scale and one categorical scale, although a familiar exception is the scatterplot, which has quantitative scales along both axes (see Figure 2). In a line graph, the categorical scale always appears on the horizontal axis.
You can use the GGally
package, it support a lot of feature.
require(GGally)
data(tips)
tips.sample <- tips[ ,c("total_bill", "tip", "day")]
ggpairs(tips.sample, upper = list(continuous = "points", combo = "box"),
lower = list(continuous = "points", combo = "box"))
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With