ggplot2 multiline title, different indentations

前端 未结 5 713
失恋的感觉
失恋的感觉 2021-01-01 00:25

I am generating graphs for a publication and I\'d like to be able to label the panels of a figure in ggplot itself (as opposed to exporting to publisher, etc) so that they j

5条回答
  •  一个人的身影
    2021-01-01 01:18

    Since ggplot2 3.0.0, there is a native way to do this, using the tag label:

    ggplot(iris, aes(x = Sepal.Length, y = Sepal.Width, color = Species, shape = Species)) +
      geom_point() +
      labs(title = "The Actual Long, Normal Title of Titliness",
           tag = "A")
    

提交回复
热议问题