View source: R/coherenceIndexOLD.R
coh_re | R Documentation |
visualizes the correction of PAM values by correction value.
coh_re(x, y, long = NULL, lat = NULL, nk, reverse)
df |
data.frame - with column "CTR" for control values, "PAM" for pam values and optional "PAM_corr" for corrected PAM values. |
al |
numeric - a vector of numeric values on the x axes to draw lines. Default=0 |
yl |
numeric - ylim adjustment. Default=c(0,2) |
sortby |
character - column name to reorder the inoput datafram 'df'. IF set the argument 'al' will not be used. |
abs_dif |
boolean - IF TRUE plots the differences as absolute values (no negative values). Default=TRUE. |
titel |
character - desired maintitel for the plot . Default="PAMcorrection". |
returns a plot containing the original PAM (orange) and Control (blue) values along with the difference (grey). If corrected PAM values are available those will be plotted in red along with the differnece between the corrected PAM and COntrol values. Additionally prints the total Difference along with mean and standart divation for PAM or if given PAM corrected and Control
For visualization purposes the difference between the corrected PAM and Control is used as absolute values (negative values are plotted as positive). Further the mean and sd is calculated for the absolute values.
Andreas Schönberg
# load data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.