3

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

Axeman
  • 32,068
  • 8
  • 81
  • 94
LaNeu
  • 105
  • 14
  • [Here](http://www.strengejacke.de/sjPlot/custplot/) is an overview of things you *can* change, but line size doesn't seem to among them. – Axeman Nov 24 '15 at 09:13

1 Answers1

2

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.

Daniel
  • 7,252
  • 6
  • 26
  • 38