GWAS Precision Plot
This function generates the precision plot created by
QC_series
. Precision is defined as:
1 / median standard-error
.
plot_precision(SE, N, labels = NULL, save_name = "Graph_precision", save_dir = getwd(), ...)
SE, N |
numeric vectors containing the median standard-error and sample size of the datasets, respectively. |
labels |
vector containing names or other identifiers for
the datapoints, to be plotted in the graph. Note: it's best
to keep these very short. To disable labeling, set to
|
save_name |
character string; the filename, without extension, for the graph file. |
save_dir |
character string; the directory where the graph is saved. Note that R uses forward slash (/) where Windows uses backslash (\). |
... |
arguments passed to |
The plot is to provide a visual estimate whether the standard errors are within the expected range. As sample size increases, the median standard error is expected to decrease, so the plot should show a linear relation.
An invisible NULL
.
value_SE <- c(0.078, 0.189, 0.077, 0.040, 0.021, 0.072) value_N <- c(870, 830, 970, 690, 2200, 870) value_labels <- paste("cohort", 1:6) plot_precision(SE = value_SE, N = value_N, labels = value_labels, save_name = "sample_precision")
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.