Learn R Programming

GGally (version 1.3.2)

ggally_points: Plots the Scatter Plot

Description

Make a scatter plot with a given data set.

Usage

ggally_points(data, mapping, ...)

Arguments

data

data set using

mapping

aesthetics being used

...

other arguments are sent to geom_point

Examples

Run this code
# NOT RUN {
data(mtcars)
ggally_points(mtcars, mapping = ggplot2::aes(x = disp, y = hp))
ggally_points(mtcars, mapping = ggplot2::aes_string(x = "disp", y = "hp"))
ggally_points(
  mtcars,
  mapping = ggplot2::aes_string(
    x     = "disp",
    y     = "hp",
    color = "as.factor(cyl)",
    size  = "gear"
  )
)
# }

Run the code above in your browser using DataLab