gg_scatter_compare: Scatter plot for method comparisons

Description Usage Arguments

View source: R/gg_scatterCompare.R

Description

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

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
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-tools documentation built on Jan. 7, 2022, 5:35 p.m.