Method for plotting an antigenic map as a ggplot object
# S3 method for acmap
ggplot(
data = NULL,
mapping = NULL,
optimization_number = 1,
xlim = NULL,
ylim = NULL,
plot_ags = TRUE,
plot_sr = TRUE,
plot_blobs = TRUE,
plot_hemisphering = TRUE,
show_procrustes = TRUE,
show_error_lines = FALSE,
plot_stress = FALSE,
indicate_outliers = "arrowheads",
grid.col = "grey90",
grid.lwd = 0.5,
grid.margin.col = "grey50",
grid.margin.lwd = grid.lwd,
fill.alpha = 0.8,
outline.alpha = 0.8,
padding = 1,
arrow_angle = 25,
arrow_length = 0.2,
margins = rep(0.5, 4),
...,
environment = NULL
)
The acmap to plot
Default list of aesthetic mappings to use for plot, not currently used
The optimization number to plot
optional x axis limits
optional y axis limits
logical, should antigens be plotted
logical, should antigens be plotted
logical, should stress blobs be plotted if present
logical, should hemisphering points be indicated, if
tested for already with checkHemisphering()
(and if present)
logical, should procrustes lines be shown, if present
logical, should error lines be drawn
logical, should map stress be plotted in lower left corner
how should points outside the plotting region be indicated, either FALSE, for not shown, or "arrowheads" for small arrowheads like in the viewer.
grid line color
grid line width
grid margin color
grid margin line width
alpha for point fill
alpha for point outline
padding at limits of the antigenic map, ignored if xlim or ylim set explicitly
angle of arrow heads drawn for procrustes lines
length of arrow heads drawn for procrustes lines in cm
margins in inches for the plot
additional arguments, not used
not used
Returns the ggplot plot
Other functions to view maps:
RacViewer.options()
,
RacViewer()
,
export_viewer()
,
mapGadget()
,
plot.acmap()
,
setLegend()
,
view.acmap()
,
view.default()
,
view()