coh_re: coh_re - Function for plotting of PAM correction.

View source: R/coherenceIndexOLD.R

coh_reR Documentation

coh_re - Function for plotting of PAM correction.

Description

visualizes the correction of PAM values by correction value.

Usage

coh_re(x, y, long = NULL, lat = NULL, nk, reverse)

Arguments

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".

Value

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

Note

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.

Author(s)

Andreas Schönberg

Examples

# load data


SchoenbergA/LinguGeo documentation built on March 27, 2023, 2:47 a.m.