Margin adjustments when using ggplot's geom_tile()

后端 未结 1 1221
终归单人心
终归单人心 2020-12-10 05:02

From the documentation for ggplot2\'s geom_tile() function, we have the following simple plot:

# Generate data 
pp <- function (n,r=4) { 
    x <- seq         


        
相关标签:
1条回答
  • 2020-12-10 05:24

    Try this:

    p + geom_tile() + 
        scale_x_continuous(expand=c(0,0)) + 
        scale_y_continuous(expand=c(0,0))
    
    0 讨论(0)
提交回复
热议问题