You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#' @param pgs.data data.frame PGS data as formatted by \code{apply.polygenic.score()}. Required columns are at least one of PGS, PGS.with.replaced.missing, or PGS.with.normalized.missing, and at least one continuous phenotype column.
366
366
#' This function is designed to work with the output of \code{apply.polygenic.score()}.
367
367
#' @param phenotype.columns character vector of continuous phenotype column names in pgs.data to plot
368
+
#' @param hexbin.threshold numeric threshold (exclusive) for cohort size at which to switch from scatterplot to hexbin plot.
369
+
#' @param hexbin.colour.scheme character vector of colors for hexbin plot bins. Default is \code{NULL} which uses gray/black.
370
+
#' @param hexbin.colourkey logical whether a legend should be drawn for a hexbinplot, defaults to \code{TRUE}.
371
+
#' @param hexbin.colourcut numeric vector of values covering [0, 1] that determine hexagon colour class boundaries and hexagon legend size boundaries.
372
+
#' Alternatively, an integer (<= hexbin.maxcnt) specifying the number of equispaced colourcut values in [0,1].
373
+
#' @param hexbin.mincnt integer, minimum count for a hexagon to be plotted. Default is 1.
374
+
#' @param hexbin.maxcnt integer, maximum count for a hexagon to be plotted. Cells with more counts are not plotted. Default is \code{NULL}.
375
+
#' @param hexbin.xbins integer, number of bins in the x direction for hexbin plot. Default is 30.
376
+
#' @param hexbin.aspect numeric, aspect ratio of hexbin plot to control plot dimensions. Default is 1.
368
377
#' @param output.dir character directory to save output plots
369
378
#' @param filename.prefix character prefix for output filenames
370
379
#' @param file.extension character file extension for output plots
371
380
#' @param tidy.titles logical whether to reformat PGS plot titles to remove periods
372
381
#' @param compute.correlation logical whether to compute correlation between PGS and phenotype and display in plot
373
382
#' @param corr.legend.corner numeric vector indicating the corner of the correlation legend e.g. \code{c(0,1)} for top left
374
383
#' @param corr.legend.cex numeric cex for correlation legend
384
+
#' @param include.origin logical whether to include the origin (zero) in plot axes
375
385
#' @param width numeric width of output plot in inches
376
386
#' @param height numeric height of output plot in inches
377
387
#' @param xaxes.cex numeric size for x-axis labels
0 commit comments