Losing the grey margin padding in a ggplot

前端 未结 1 467
自闭症患者
自闭症患者 2020-12-28 18:14

A would like to plot geom_tile() without displaying the surrounding grey frame. Example:

library(ggplot2)
p <- ggplot(melt(volcano), aes(x = X1, y = X2, z         


        
相关标签:
1条回答
  • 2020-12-28 18:56

    just do print(p1 + scale_x_continuous(expand = c(0, 0)) + scale_y_continuous(expand = c(0, 0))) and that will get rid of the gray space around

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