Learn R Programming

DataExplorer (version 0.5.0)

plot_scatterplot: Create scatterplot for all features

Description

This function creates scatterplot for all features fixing on a selected feature.

Usage

plot_scatterplot(data, by, title = NULL, ...)

Arguments

data

input data to be plotted, in either data.frame or data.table format.

by

feature name to be fixed.

title

plot title

other arguments to be passed to geom_point.

See Also

geom_point

Examples

Run this code
# NOT RUN {
# load mpg data from ggplot2
data("mpg", package = "ggplot2")

# scatterplot mpg dataset by "hwy"
plot_scatterplot(mpg, "hwy", size = 1)
# scatterplot mpg dataset by "class"
plot_scatterplot(mpg, "class", size = 1)
# }

Run the code above in your browser using DataLab