Skip to content

Commit c1e5536

Browse files
committed
add example
1 parent fbf5c97 commit c1e5536

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

R/geom-hex.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,5 +99,8 @@ GeomHex <- ggproto("GeomHex", Geom,
9999
#' # Or by specifying the width of the bins
100100
#' d + geom_hex(binwidth = c(1, 1000))
101101
#' d + geom_hex(binwidth = c(.1, 500))
102+
#'
103+
#' # The hexagons can be scaled by tuning the radius aesthetic
104+
#' d + geom_hex(aes(radius = after_stat(ncount)))
102105
#' }
103106
geom_hex <- make_constructor(GeomHex, stat = 'binhex')

man/geom_hex.Rd

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)