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
library(ggplot2)
library(ggdark)
set.seed(1)
df<-data.frame(x=1:100, y= rnorm(100))
ggplot(df, aes(x, y))+
geom_point() +
dark_theme_bw()
#> Inverted geom defaults of fill and color/colour.#> To change them back, use invert_geom_defaults().
# This should work for both step and point
ggplot(df, aes(x))+
geom_step(aes(y=cumsum(y), group=1))+
geom_point(aes(y=cumsum(y)))+
dark_theme_bw()
# This is the expected output, right?
ggplot(df, aes(x))+
geom_step(aes(y=cumsum(y), group=1), color="white")+
geom_point(aes(y=cumsum(y)))+
dark_theme_bw()
# let's call it normally
ggplot(df, aes(x))+
geom_step(aes(y=cumsum(y), group=1))+
geom_point(aes(y=cumsum(y)))
Created on 2023-01-05 by the reprex package (v2.0.1)
The text was updated successfully, but these errors were encountered: