Closed HarlanH closed 11 years ago
FWIW, using this function instead of the convert
in your utils.R
seems to get around this problem, although I have no idea if it's the preferred solution:
combine2 <- function(x, y) {
n <- length(x)
for(i in seq_along(y)) {
x[[n + i]] <- y[[i]]
names(x)[[n+i]] <- names(y)[[i]]
}
x
}
Hi Harlan,
gg2v is basically just a proof of concept that you could convert ggplot2 into vega, but it's not something I'll be developing further. You're more than welcome to fork and continue working on it though.
Hadley
Hey Hadley. I'm playing around with gg2v -- cool stuff. Actually planning to do some stuff with Vega in another language for work, but using gg2v to do some quick and dirty proof of concept work. I've found that some simple plots that work fine when rendered via ggplot break in gg2v, seemingly because column names aren't correctly set in aggregation. Here's an example:
I'd like to get this fixed for my demos. The issue seems to be in
plot-data.R::process_stats
, but I'm not exactly sure what needs to be done. Any suggestions? Thanks!-Harlan