plot {hashmap}R Documentation

Plot method for Hashmap class

Description

Plot method for Hashmap class

Usage

## 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


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)

[Package hashmap version 0.2.2 Index]