Faceted Lattice Plots in R, e.g., wireframes: How to remove strips and add 1-Line subtitles

前端 未结 1 1059
渐次进展
渐次进展 2021-01-24 17:57

I use this kind of function (from iris data set)

model_test <- lm(Sepal.Length ~( Petal.Length + Sepal.Width + Petal.Width +Species)^2,
data=iris)
gg<-expa         


        
相关标签:
1条回答
  • 2021-01-24 18:29

    Lattice is going to create a strip for each conditioning variable. If you want just one strip, try conditioning on the interaction. For example

    wireframe(pred~Sepal.Width+Petal.Width|interaction(Species,Petal.Length),
               pd, drape=FALSE,scale=list(arrows=FALSE), subset=(Species=="setosa"), layout=c(3,3))
    

    which gives

    enter image description here

    You can create the interaction ahead of time and customize the levels if you like with whatever description you want.

    0 讨论(0)
提交回复
热议问题