Hi,
I am using the car package in R to complete a scatterplot matrix with linear regression lines. I wish the column names on diagonal to be in subscript for some of the characters, is there a way I can incorporate expression into var labels?
scatterplotMatrix(inbred[1:4],smooth = FALSE,ylim=c(0,0.35), xlim=c(0,0.35), reg.line = lm,diagonal=c("none"),var.labels=colnames(inbred))
I have tried the following
scatterplotMatrix(inbred[1:4],smooth = FALSE,ylim=c(0,0.35), xlim=c(0,0.35), reg.line = lm,diagonal=c("none"),var.labels=colnames(expression(F[123]), expression(F[222]), expression(F[333]), expression(F[444])))
Thanks! :)
I usually use ggplot so if you would like to use that you can use geom_text() function to label selected points.