gg_scatter_compare: Scatter plot for method comparisons

View source: R/gg_scatterCompare.R

gg_scatter_compareR Documentation

Scatter plot for method comparisons

Description

Define a scatter plot generator for making comparisons between two different methods

Usage

gg_scatter_compare(
  data,
  data.x,
  data.y,
  label.x,
  label.y,
  title,
  units,
  lim,
  line.color = "blue",
  line.size = 0.7,
  point.size = 0.7,
  ticks.breaks = NULL,
  ticks.minor_breaks = NULL,
  ...
)

Arguments

data

Data frame

data.x

String label for x-axis data

data.y

String label for y-axis data

label.x

Plot label for x-axis

label.y

Plot label for y-axis

title

Plot title

units

Units to append to axes (default = NULL)

lim

Axes limits in form of 2-vector to apply to both x and y axes (the plot should be square)

line.color

Color of the fit line (default = "blue")

line.size

Fit line size (default = 0.7)

point.size

Scatter point size (default = 0.7)

ticks.breaks

Vector of break points to use on the axes

ticks.minor_breaks

Vector of minor break points to use on the axes

...

Additional theme parameters


adamleejohnson/R-ajtools documentation built on April 4, 2022, 7:24 a.m.