Skip to content

Instantly share code, notes, and snippets.

@baptiste
Created October 10, 2017 19:00
Show Gist options
  • Save baptiste/1740194e4fe5a1525eeb3e9304d1aec2 to your computer and use it in GitHub Desktop.
Save baptiste/1740194e4fe5a1525eeb3e9304d1aec2 to your computer and use it in GitHub Desktop.
set.seed(123)
dummy <- data.frame(x=runif(10), y=runif(10), f = runif(10))
ggplot(dummy, aes(x,y, fill=f)) +
geom_raster() +
guides(fill=guide_colourbar(label.vjust = 0))+
scale_fill_continuous(lim=c(0,1), expand=c(0,0)) +
labs(fill="gggg") +
theme_grey(24)
@baptiste
Copy link
Author

screen shot 2017-10-11 at 8 01 13 am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment