为了账号安全,请及时绑定邮箱和手机立即绑定

theme_classic()不能改变主题

ggplot(airquality, aes(Wind,Temp,

                       col=factor(Month))) +

  geom_point() + 

  stat_smooth(method="lm", se=FALSE) + 

  scale_color_manual("Month", values = myColors) + 

  facet_grid(.~Month)

  theme_classic()

 主题不改变而且是下面的,也没有报错,

 $ strip.text.x         :List of 11

  ..$ family       : NULL

  ..$ face         : NULL

  ..$ colour       : NULL

  ..$ size         : NULL

  ..$ hjust        : NULL

  ..$ vjust        : NULL

  ..$ angle        : NULL

  ..$ lineheight   : NULL

  ..$ margin       :Classes 'margin', 'unit'  atomic [1:4] 5.5 0 5.5 0

  .. .. ..- attr(*, "valid.unit")= int 8

  .. .. ..- attr(*, "unit")= chr "pt"

  ..$ debug        : NULL

  ..$ inherit.blank: logi TRUE

  ..- attr(*, "class")= chr [1:2] "element_text" "element"

 $ strip.text.y         :List of 11

  ..$ family       : NULL

  ..$ face         : NULL

  ..$ colour       : NULL

  ..$ size         : NULL

  ..$ hjust        : NULL

  ..$ vjust        : NULL

  ..$ angle        : num -90

  ..$ lineheight   : NULL

  ..$ margin       :Classes 'margin', 'unit'  atomic [1:4] 0 5.5 0 5.5

  .. .. ..- attr(*, "valid.unit")= int 8

  .. .. ..- attr(*, "unit")= chr "pt"

  ..$ debug        : NULL

  ..$ inherit.blank: logi TRUE

  ..- attr(*, "class")= chr [1:2] "element_text" "element"

 $ strip.switch.pad.grid:Class 'unit'  atomic [1:1] 0.1

  .. ..- attr(*, "valid.unit")= int 1

  .. ..- attr(*, "unit")= chr "cm"

 $ strip.switch.pad.wrap:Class 'unit'  atomic [1:1] 0.1

  .. ..- attr(*, "valid.unit")= int 1

  .. ..- attr(*, "unit")= chr "cm"

 - attr(*, "class")= chr [1:2] "theme" "gg"

 - attr(*, "complete")= logi TRUE

 - attr(*, "validate")= logi TRUE


正在回答

1 回答

举报

0/150
提交
取消

theme_classic()不能改变主题

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信