Description Usage Arguments Author(s) See Also Examples
The plot method of obkData objects includes various options:
timeline
: plots requested information as time series;
uses plotIndividualTimeline
.
geo
: plots requested information as geographic
distribution, on a map; uses plotGeo
.
mst
: minimum-spanning tree based on genetic distances;
uses plotggMST
.
phylo
: plot phylogenetic trees stored in the object;
uses plotggphy
.
contacts
: plot contacts between individuals stored in the object;
uses plot.obkContacts
.
1 2 |
x |
a obkData object |
y |
a character indicating the type of plot to be generated; can be "timeline" (default), "geo", "mst", "phylo", or "contacts". |
... |
further arguments to be passed to the plotting function, depending on the type of plot selected (see description above). |
Rolf Ypma Rolf.Ypma@rivm.nl, Thibaut Jombart t.jombart@imperial.ac.uk
plotIndividualTimeline
, plotGeo
,
plotggMST
, plotggphy
, plot.obkContacts
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | data(HorseFlu)
head(HorseFlu)
## default plot: time line
plot(HorseFlu,orderBy='yardID',colorBy='yardID')
plot(HorseFlu,orderBy='yardID',colorBy='yardID',
selection=1:30) # only the first 30
## plot contacts
data(ToyOutbreak)
plot(ToyOutbreak, "contacts")
## Not run:
## plot geographic distribution of individuals
plot(HorseFlu, "geo", location=c('lon','lat'), colorBy='sex',
zoom=12,center='9')
## plot minimum spanning tree for first 10 individuals
get.nindividuals(HorseFlu)
plot(subset(HorseFlu, individuals=1:10), "mst")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.