Method for plotting an antigenic map in two dimensions
# S3 method for acmap
plot(
x,
optimization_number = 1,
xlim = NULL,
ylim = NULL,
plot_ags = TRUE,
plot_sr = TRUE,
plot_labels = FALSE,
plot_blobs = TRUE,
point_opacity = "automatic",
show_procrustes = TRUE,
show_error_lines = FALSE,
plot_stress = FALSE,
indicate_outliers = "arrowheads",
grid.col = "grey90",
grid.margin.col = "grey50",
outlier.arrow.col = grid.col,
fill.alpha = 0.8,
outline.alpha = 0.8,
procrustes.lwd = 2,
procrustes.col = "black",
procrustes.arr.type = "triangle",
procrustes.arr.length = 0.2,
procrustes.arr.width = 0.15,
label.offset = 0,
padding = 1,
cex = 1,
margins = rep(0.5, 4),
...
)
The acmap to plot
The optimization number to plot
optional x axis limits
optional y axis limits
logical, should antigens be plotted
logical, should antigens be plotted
should point labels be plotted, can be true, false or "antigens" or "sera"
logical, should stress blobs be plotted if present
Either "automatic" or "fixed". "fixed" fixes point
opacity to match those in ptFill()
and ptOutline()
and will not be
altered in procrustes plots or by the fill.alpha and outline.alpha
parameters.
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, "arrowheads" for small arrowheads like in the viewer, or "arrows" for arrows pointing from the edge of the plot margin, default is "arrowheads".
grid line color
grid margin color
outlier arrow color
alpha for point fill
alpha for point outline
procrustes arrow line width
procrustes arrow color
procrustes arrow type (see shape::Arrows()
)
procrustes arrow length (see shape::Arrows()
)
procrustes arrow width (see shape::Arrows()
)
amount by which any point labels should be offset from point coordinates in fractions of a character width
padding at limits of the antigenic map, ignored if xlim or ylim set explicitly
point size expansion factor
margins in inches for the plot, use NULL
for default margins from par("mar")
additional arguments, not used
Called for the side effect of plotting the map but invisibly returns the map object.
Other functions to view maps:
RacViewer.options()
,
RacViewer()
,
export_viewer()
,
ggplot.acmap()
,
mapGadget()
,
setLegend()
,
view.acmap()
,
view.default()
,
view()