2015-11-24 73 views
3

我想更改sjp.int圖中線條(粗線條)的寬度。我嘗試了所有幫助論點,但無法找到它。更改線寬(厚度)sjPlot sjp.int R

示例代碼:

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

sample plot

+0

[這裏](http://www.strengejacke.de/sjPlot/custplot/)是你*可以*改變的事物的概述,但是線條大小似乎並不在其中。 – Axeman

回答

1

您不能sjp.int改變行的大小目前,所以你必須修改返回劇情對象(S),這是在返回值plot.list。然後你可以覆蓋geom_line()

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

enter image description here

我添加了一個geom.size參數sjp.int,看GitHub