Learn R Programming

fastR2 (version 0.2.0)

Trebuchet: Trebuchet data

Description

Measurements from an experiment that involved firing projectiles with a small trebuchet under different conditions.

Arguments

Format

Data frames with the following variables.

  • object the object serving as projectilebean big washerb bigWash BWB foose golf MWB SWB tennis ball wood

  • projectileWt weight of projectile (in grams)

  • counterWt weight of counter weight (in kg)

  • distance distance projectile traveled (in cm)

  • form a factor with levels a b B c describing the configuration of the trebuchet.

Details

Trebuchet1 and Trebuchet2 are subsets of Trebuchet restricted to a single value of counterWt

Examples

Run this code
# NOT RUN {
data(Trebuchet); data(Trebuchet1); data(Trebuchet2)
gf_point(distance ~ projectileWt, data = Trebuchet1)
gf_point(distance ~ projectileWt, data = Trebuchet2)
gf_point(distance ~ projectileWt, color = ~ factor(counterWt), data = Trebuchet) %>%
  gf_smooth(alpha = 0.2, fill = ~factor(counterWt))

# }

Run the code above in your browser using DataLab