Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for pre-binned data #3

Open
zachmayer opened this issue Feb 12, 2015 · 0 comments
Open

Support for pre-binned data #3

zachmayer opened this issue Feb 12, 2015 · 0 comments

Comments

@zachmayer
Copy link

I have a huge dataset I want to visualize in tabplot. The dataset currently resides in a redshift server, and I can pre-aggregate a lot of the bins before I pass them to tableplot.

It would be nice if tabplot supported a weight argument.

e.g.:

library('tabplot')
library('data.table')
library('ggplot2')
data(diamonds)
dat <- data.table(diamonds)
dat <- dat[,list(n=.N), by=c('carat', 'cut', 'color', 'clarity')]

#Identical to tableplot(diamonds, select_string=c('carat', 'cut', 'color', 'clarity'))
#But 1/4 of the data size
tableplot(dat, weight='n') 
nrow(dat)/nrow(diamonds)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant