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

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


if (FALSE) {
scatterplot_predictions(x = asinh(chip),
                        y = asinh(predicted),
                        xlab = 'asinh(measured occupancy)',
                        ylab = 'asinh(predicted occupancy)')
}