This function is same as ggplot2::ggplot. In ggplot2.SparkR, we define a new method for Spark DataFrame
1 | ggplot(data = NULL, mapping = aes(), ..., environment = parent.frame())
|
data |
Default dataset to use for plot. If not already a data.frame, will be converted to one by fortify. If not specified, must be suppled in each layer added to the plot. |
mapping |
Default list of aesthetic mappings to use for plot. If not specified, must be suppled in each layer added to the plot. |
... |
Other arguments passed on to methods. Not currently used. |
environment |
If an variable defined in the aesthetic mapping is not found in the data, ggplot will look for it in this environment. It defaults to using the environment in which ggplot() is called. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.