LaNeu
LaNeu

Reputation: 115

Change line width (thickness) sjPlot sjp.int R

I would like to change the width of the lines (thicker lines) in an sjp.int plot. I tried all help arguments, but somehow could not find it.

Example code:

require(ggplot2) 
require(sjPlot) 
head(diamonds) 
test<-lm(price ~ carat*depth, data=diamonds)
sjp.int(test, type = "eff")

sample plot

Upvotes: 3

Views: 1177

Answers (1)

Daniel
Daniel

Reputation: 7832

You cannot change line size for sjp.int currently, so you have to modify the returned plot object(s), which are in the return value plot.list. Then you can overwrite geom_line().

dummy <- sjp.int(test, type = "eff")
dummy$plot.list[[1]] + geom_line(size = 3)

enter image description here

I've added a geom.size argument to sjp.int, see GitHub.

Upvotes: 2

Related Questions