R/spaghettiPlot.R
spaghetti_plot.RdDraws a volcano plot for a set of coefficients and p-values. Uses ggplot for plotting and ggrepel package for labels. By default, plot labeling assumes FDR-corrected p-values.
spaghetti_plot(
target,
data,
sampleInfo,
time_var_name,
id_var_name,
group_var_name = NULL,
axis_label_font_size = 0.55,
legend = TRUE
)Font size of axis title.
Vector of coefficients.
Vector of p-values.
Vector of target names.
Plot title.
X axis label.
Y axis label.
X axis limits
Y axis limits
Passed to ggrepel. Integer which determines how many targets will have labels. "Inf" (default) labels all targets.
Font size of plot title.
Font size of axis tick marks.
Font size of target labels.
Color of line segments for target labels.
Aspect ratio for plot. Default is 1 (square plot).
Outputs a ggplot object.