scatterplot_predictions: Scatter plot of measured and predicted occupancy

View source: R/plots.R

scatterplot_predictionsR Documentation

Scatter plot of measured and predicted occupancy

Description

Makes a scatter plot of measured and predicted occupancy, with Pearson's correlation (R) between measured and predicted occupancy.

Usage

scatterplot_predictions(
  x,
  y,
  xlab = "measured",
  ylab = "predicted",
  title = "",
  xlim = c(0, 10),
  ylim = c(0, 10),
  color = "black"
)

Arguments

x

x-axis values of points in the plot (measured).

y

y-axis values of points in the plot (predicted).

xlab

Label for the x axis.

ylab

Label for the y axis.

title

Title for the plot.

xlim

Range of x-axis values.

ylim

Range of y-axis values.

color

The plotting color.

Value

A ggplot object for the scatter plot of measured and predicted occupancy.

Examples


## Not run: 
scatterplot_predictions(x = asinh(chip),
                        y = asinh(predicted),
                        xlab = 'asinh(measured occupancy)',
                        ylab = 'asinh(predicted occupancy)')

## End(Not run)

HarteminkLab/TOP documentation built on July 27, 2023, 6:14 p.m.