plot.Rcpp_Hashmap: Plot method for Hashmap class

Description Usage Arguments Details Examples

Description

Plot method for Hashmap class

Usage

1
2
## S3 method for class 'Rcpp_Hashmap'
plot(x, ...)

Arguments

x

an object created by a call to hashmap

...

arguments passed to plot

Details

A convenience function which simply calls plot using x$keys() and x$values() as plotting coordinates.

Examples

1
2
3
4
5
6
x <- hashmap(1:20, rnorm(20))
plot(x)
plot(x, type = 'p', pch = 20, col = 'red')

y <- hashmap(Sys.Date() + 1:20, rnorm(20))
plot(y, type = 'h', col = 'blue', lwd = 3)

hashmap documentation built on May 1, 2019, 10:13 p.m.