View source: R/ggplot_functions.R
geom_lmfreq | R Documentation |
Perform a linear regression using the lm command and output the results..
geom_lmfreq(
mapping = NULL,
data = NULL,
stat = "identity",
show.legend = NA,
position = "identity",
...,
show.fit = T,
show.label = T,
linesize = 1,
location = "tl",
m = T,
m.err = T,
int = T,
int.err = T,
r2 = T,
p = T,
significance.level = 0.05,
fontfamily = "serif",
fontsize = 6,
coef.digits = 2,
nudge_x = 0,
nudge_y = 0,
inherit.aes = T
)
mapping |
Set of aesthetic mappings created by |
data |
The data to be displayed in this layer. |
stat |
The statistical transformation to use on the data for this layer, as a string. |
show.fit |
Should the regression fit line be shown? Boolean, defaults to TRUE. |
show.label |
Should the regression fit summary be shown? Boolean, defaults to TRUE. |
linesize |
The size of the fit line (in points). |
location |
Location to print fit results. Defaults to 'tl' (top-left), but may be 'tr', 'bl', or 'br'. |
m |
Should the slope coefficient be shown? Boolean, defaults to TRUE. |
m.err |
Should the slope's standard error be shown? Boolean, defaults to TRUE. |
int |
Should the intercept be shown? Boolean, defaults to TRUE. |
int.err |
Should the intercept's standard error be shown? Boolean, defaults to TRUE. |
r2 |
Should Pearson's r-squared be shown? Boolean, defaults to TRUE. |
p |
Should the slope's significance be shown? |
fontfamily |
Font family as a string to use for label plotting. |
fontsize |
Font size as an integer (in pointS). Used for lable plotting. |
coef.digits |
Number of digits to round to in the fit label. |
nudge_x |
Manual X-axis adjustment of the text. In plotting units (where plotting area ranges from 0 to 1). |
nudge_y |
Manual Y-axis adjustment of the text. In plotting units (where plotting area ranges from 0 to 1). |
signifiance.level |
Significance level to use for hypothesis testing. Default is 0.05 |
The geom understands the following aesthetics (required are in bold):
x
y
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.