R/data-simulated_scatter.R

#' Simulated data for sample scatterplots
#'
#' Fake data.
#'
#'
#' @name simulated_scatter
#' @docType data
#' @format A data frame with 500 observations on the following 3 variables.
#' \describe{
#'   \item{group}{Group, representing data for a specific plot.}
#'   \item{x}{x-value.}
#'   \item{y}{y-value.}
#' }
#' @keywords datasets
#' @examples
#'
#' library(ggplot2)
#'
#' ggplot(simulated_scatter, aes(x = x, y = y)) +
#'   geom_point() +
#'   facet_wrap(~group)
"simulated_scatter"

Try the openintro package in your browser

Any scripts or data that you put into this service are public.

openintro documentation built on Sept. 1, 2022, 9:06 a.m.