View source: R/gg_scatterCompare.R
gg_scatter_compare | R Documentation |
Define a scatter plot generator for making comparisons between two different methods
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, ... )
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.