ggplot2 - R ggplot geom_tile without fill color -


i trying add geom_tile layer plot without filled color (just outline). there way transparent tile boundary visible?

thanks

i think after alpha parameter. minimal example:

  1. create plot dummy data set color (for "boundary") , no fill:

    p <- ggplot(pp(20)[sample(20*20, size=200), ], aes(x = x, y = y, color = z)) 
  2. add geom_tile() alpha set zero:

    p <- geom_tile(alpha=0) 
  3. add theme_bw() transparent tiles lame dark gray background :)

    p + theme_bw()  

enter image description here


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -