ggplot with two data
Ireneruru opened this issue · 1 comments
Ireneruru commented
In this R script, there are two data: mean_wt and mtcars. However, current pygg only resolve one data and can not resolve the mean_wt.
mean_wt <- data.frame(cyl = c(4, 6, 8), wt = c(2.28, 3.11, 4.00))
ggplot(mtcars, aes(mpg, wt, colour = wt)) +
geom_point() +
geom_hline(aes(yintercept = wt, colour = wt), mean_wt) +
facet_wrap(~ cyl)
Example source
sirrice commented
cool! definitely a common usecase, especially when created layered plots. it requires uniquely naming each dataset turning the transpilation. want to open a pr for it?