bio_bires | R Documentation |
This function catagorises data points into above or below a cut-off plane
bio_bires( x, y, df.data, x.plane, y.plane, df.plane, stepwise = TRUE, colours = c("red", "green", "grey"), inc.equal = TRUE, labels = c("above", "below"), type = "point" )
x |
y column name in data |
y |
x column name in data |
df.data |
Data frame containing x and y columns |
x.plane |
column name for the x axis in df.plane |
y.plane |
column name for the y axis in df.plane |
df.plane |
Date frame modelling the plane |
stepwise |
logical whether to plot the cutoff plane as stepwise or smoothed |
colours |
colour vector for higher, lower and plane values (default=c("green", "red", "grey) respectively) |
inc.equal |
logical whethere points on the line should be counted as above (dafault=TRUE) |
labels |
label for the markers (default=c("above", "below")) |
type |
type of plot for data (options include point (dafault), line, stepwise) |
data(beavers) df.plane = beaver1 df.data = beaver2 df.plane$temp <- df.plane$temp +0.5 bio_bires(x="time", y="temp", df.data, x.plane="time", y.plane="temp", df.plane)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.