r2d3 (version 1.0)

jsonXtabs: Data frame to cross tabs json

Description

Creates a json file representing between two categorical variables. This json will work with D3XtabHeat

Usage

jsonXtabs(data)

Arguments

data
A data frame to be converted to json. It should contain two columns one for each categorical variable

Examples

Run this code
data<-data.frame(airquality$Month, airquality$Temp)
json<-jsonXtabs(data)

Run the code above in your browser using DataLab