Here is the ggplot python translation of the R code (R version works fine).
ggplot(aes(displ),data =mpg) + geom_histogram(aes(fill=class),binwidth = .1,col="black")
python version
ggplot(aes('displ'),data =mpg)+geom_histogram(aes(fill='class'),
binwidth = .1,
col="black"
)
In the python version I am getting following error:
ValueError: Invalid RGBA argument: 'compact'
Here is the ggplot python translation of the R code (R version works fine). ggplot(aes(displ),data =mpg) + geom_histogram(aes(fill=class),binwidth = .1,col="black")
python version ggplot(aes('displ'),data =mpg)+geom_histogram(aes(fill='class'), binwidth = .1, col="black" ) In the python version I am getting following error: ValueError: Invalid RGBA argument: 'compact'