MarinaM
MarinaM

Reputation: 1

edit tick mark labels on axis on R plot

I am using sjPlot to plot marginal effects in an interaction, and although I was able to set the axis to go from 1 to 7, only values 2, 4, and 6 appear as tick marks on the graph; I would like all values (0-7) to appear. Thank you!

Code :

specif<- lmer(Lprog ~ phq9_total * Lspecif_C + (1|ID), Study1)

pspecif<-plot_model(specif,type="int", mdrt.values="meansd",
                title ="Specificity", 
                axis.lim = c(1,7), 
                axis.title= c("depression","goal progress"),
                colors = "simply",
                show.legend=FALSE)

pspecif + theme(plot.title = element_text(hjust = 0.5))  

output figure

Upvotes: 0

Views: 315

Answers (0)

Related Questions