Learn R Programming

hashmap (version 0.2.2)

plot: Plot method for Hashmap class

Description

Plot method for Hashmap class

Usage

# S3 method for 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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab