You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the R bar plot documentation, there are significant differences between the Julia and R bar plot implementations. Some of these — related to sideways bar plots — are pretty significant.
Consider the following ggplot (R) code:
ggplot(mpg) + geom_bar(aes(y=class))
The corresponding Julia code seems like it should be:
using RDatasets
using TidierPlots
cars =dataset("datasets", "mtcars")
ggplot(cars) +geom_bar(@aes(y = Model))
But Tidier fails here, requiring an x aesthetic.
geom_col() is a little weirder. In R:
ggplot(mpg, aes(y=class, x=cyl)) + geom_col()
However in TidierPlots:
ggplot(cars) +geom_col(@aes(y = Model, x = Cyl))
I think at least the geom_col behaviour is concerning.
The text was updated successfully, but these errors were encountered:
The geom_bar behaviour is fixed now, but I think the geom_col behaviour in R is actually ... bad? It's not actually clear to me what the plot in the example should look like in order to make sense. In any case:
using TidierPlots
using DataFrames
using CSV
cars = CSV.read("scratch/auto-mpg.csv", DataFrame)
ggplot(cars) +
geom_bar(@aes(y = class))
Looking at the R bar plot documentation, there are significant differences between the Julia and R bar plot implementations. Some of these — related to sideways bar plots — are pretty significant.
Consider the following ggplot (R) code:
The corresponding Julia code seems like it should be:
But Tidier fails here, requiring an
x
aesthetic.geom_col()
is a little weirder. In R:However in TidierPlots:
I think at least the
geom_col
behaviour is concerning.The text was updated successfully, but these errors were encountered: