Learn R Programming

Racmacs (version 1.2.9)

RacViewer: Create a RacViewer widget

Description

This creates an html widget for viewing antigenic maps.

Usage

RacViewer(
  map,
  show_procrustes = FALSE,
  show_group_legend = FALSE,
  options = list(),
  width = NULL,
  height = NULL,
  elementId = NULL
)

Value

An object of class htmlwidget that will intelligently print itself into HTML in a variety of contexts including the R console, within R Markdown documents, and within Shiny output bindings.

Arguments

map

The map data object

show_procrustes

should procrustes lines be shown

show_group_legend

Show an interactive legend detailing different groups as set by agGroups() and srGroups()

options

A named list of viewer options supplied to racviewer.options()

width

Width of the widget

height

Height of the widget

elementId

DOM element ID

See Also

Other functions to view maps: RacViewer.options(), export_viewer(), ggplot.acmap(), mapGadget(), plot.acmap(), setLegend(), view.acmap(), view.default(), view()