R geom_tile ggplot2 what kind of stat is applied?

后端 未结 3 1706
渐次进展
渐次进展 2020-12-19 17:07

I used geom_tile() for plot 3 variables on the same graph... with

tile_ruined_coop<-ggplot(data=df.1[sel1,])+
  geom_tile(aes(x=bonus, y=mal         


        
3条回答
  •  失恋的感觉
    2020-12-19 18:04

    scale_fill() and geom_tile() apply no statistics -or better apply stat_identity()- to your fill value=rf/300. It just computes how many colors you use and then generates the colors with the munsell function 'mnsl()'. If you want to apply some statistics only to the colors displayed you should use:

    scale_colour_gradient(trans = "log")
    

    or

    scale_colour_gradient(trans = "sqrt")
    

    Changing the colors among the tiles could not be the best idea since the plots have to be comparable, and you compare the values by their colours. Hope this helps

提交回复
热议问题