Learn R Programming

openintro (version 2.4.0)

simulated_scatter: Simulated data for sample scatterplots

Description

Fake data.

Usage

simulated_scatter

Arguments

Format

A data frame with 500 observations on the following 3 variables.

group

Group, representing data for a specific plot.

x

x-value.

y

y-value.

Examples

Run this code

library(ggplot2)

ggplot(simulated_scatter, aes(x = x, y = y)) +
  geom_point() +
  facet_wrap(~group)

Run the code above in your browser using DataLab