geom_bin2d: Add heatmap of 2d bin counts.

Description Usage Arguments Examples

Description

Add heatmap of 2d bin counts.

Count number of observation in rectangular bins.

Usage

1
2
3
geom_bin2d(mapping = NULL, data = NULL, stat = "bin2d",
  position = "identity", na.rm = FALSE, show.legend = NA,
  inherit.aes = TRUE, ...)

Arguments

mapping

Set of aesthetic mapping created by aes or aes_.

data

The data to be displayed in this layer.

stat

Use override the default connection between geom_bin2d and stat_bin2d

position

Position adjustment, either as a string, or the result of a call to a position adjustment function.

na.rm

If FALSE, remove missing values with a warning (not used in ggplot2.SparkR)

show.legend

logical. Should this layer be included in the legends?

inherit.aes

If FALSE, overrides the default aesthetics, rather ehan combining with them.

...

other arguments passed on to layer.

Examples

1
2
3
4
5
6
7
8
## Not run: 
ggplot(diamonds, aes(x, y)) + geom_bin2d()

df <- createDataFrame(sqlContext, diamonds)
ggplot(df, aes(x, y)) + geom_bin2d()
ggplot(df, aes(x, y)) + geom_bin2d(binwidth = c(0.5, 0.5))

## End(Not run)

SKKU-SKT/ggplot2.SparkR documentation built on May 9, 2019, 11:13 a.m.