0 Posted 2020-06-19Updated 2024-01-11R / Plot / GGPLOTa few seconds read (About 97 words)geom_hex | ggplot examplesQuick Start library(ggthemes)library(ggplot2)library(patchwork)world <- map_data("world")ggplot(world, aes(long, lat)) + geom_hex() + theme_map() Arguments bins ggplot(world, aes(long, lat)) + geom_hex(bins = 40) + theme_map()P1 <-ggplot(world, aes(long, lat)) + geom_hex(bins = 20) + theme_map() + ggtitle('bins=20') P2 <-ggplot(world, aes(long, lat)) + geom_hex(bins = 80) + theme_map() + ggtitle('bins=80') P1|P2 binwidth ggplot(world, aes(long, lat)) + geom_hex(binwidth = c(1, 10)) + theme_map() More geom_hex | ggplot exampleshttps://karobben.github.io/2020/06/19/R/geom_hex/AuthorKarobbenPosted on2020-06-19Updated on2024-01-11Licensed under#RPlotggplot