I'd like to remove the default "variable" and "value" labels on the axes of ggparcoord plots:
library(GGally)
ggparcoord(data = mtcars,
columns = c(4:5),
groupColumn = 1,
scale = "globalminmax",
alphaLines = 0.2)
I'd also like to remove the default extra spaces on either end of the x-axis. How can I make these custom axis adjustments? Thanks!
You can use
axis.title.x
(or.y
) for changing the titles andexpand
to remove the extra white-space beyond the limits.I used
c(0.1,0.1)
to have some space beyond the limits as it would look cleaner but you can usec(0,0)
forexpand
to remove all the spaces beyond the x limits.