R/Plot_DiDiSTATIS_Perm_r2_Groups_Disc.R

# Plot_DiDiSTATIS_Perm_r2_Groups_Disc.R
#
#' Plot histogram of permtuted r^2_Groups
#'
#' @param res_DiDiSTATIS The output of DiDiSTATIS
#' @param dev_new Flag to appease ReporteRs (set FALSE to print results to pptx)
#' @return Histograms of the r^2s
#' @export

Plot_DiDiSTATIS_Perm_r2_Groups_Disc <- function(res_DiDiSTATIS, dev_new = TRUE){

  #Plot the histogram of the total squared distances from each group compromise to the compromise,
  #aggregated over all stimuli
  Plot_Hist(Distribution = res_DiDiSTATIS$Perm_Omnibus$r2_Groups_Disc,
            Stat = res_DiDiSTATIS$res_BaryGrand$EffectSize$r2_Groups_Disc,
            main = "DiDiSTATIS Omni Perm: r2_Groups_Disc",
            dev_new = dev_new)

}
michaelkriegsman/PlotDiDiSTATIS documentation built on May 30, 2019, 6:19 p.m.