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
The current design with plot only working with 0-1 group makes sense, and pool is nice enough to use. However I wonder if users would like this to be wrapped automatically through plot. Maybe this is something we should ask in community feedback? I think my personnal preference is the current implementation.
More plotting options
I would like to add some more plotting options beyond the geom_col, which is effectively a histogram. It would be nice to add a geom_point and a geom_line, e.g.
## only pointsdat %>%
incidence(date_of_onset) %>%
plot(type="point")
## points and linesdat %>%
incidence(date_of_onset) %>%
plot(type= c("point", "line")
In terms of x-axis positioning, these would be set at the middle of the corresponding time interval.
Little helpers
It would be nice to offer some small helpers which will be frequently used. Again, community feedback will be useful there. I can think of, for instance:
a small helper for rotating the labels on the x-axis, as this is often needed to avoid overlapping labels
a small helper for changing the date formats on the x-axis
Default styling
This is a big selling point, and I like the idea that the new version will look, well, new.
background: not a fan of the ggplot2 default grey; may be try defaulting to theme_bw()?
default color palette: the one I had made for incidence is quite sad looking; I had used paletton to pick colors that were quite distinct but even then I am not sure the result works well; it would be nice to have a better, more vivid, colorblind-friendly default
default color: could become the first color of the default color palette?
other palettes: do we want to provide out-of-the-box support for other color palettes, e.g. those defined in ggplot2 and RColorBrewer (probably sticking to categorical variables)?
The text was updated successfully, but these errors were encountered:
One option is to have a plot method and two plot functions single_plot and facet_plot. My inclination would be for the plot method to default to plot_facet when groups are present (using a default argument such as single = FALSE). The user would then have the following options:
x %>% plot() equivalent to x %>% facet_plot()
x %>% plot(single = TRUE) equivalent to x %>% single_plot()
We can keep single_plot and facet_plot as user facing to give them the choice. I'll implement this in a separate branch to see how it feels.
plot
vsfacet_plot
The current design with
plot
only working with 0-1 group makes sense, andpool
is nice enough to use. However I wonder if users would like this to be wrapped automatically throughplot
. Maybe this is something we should ask in community feedback? I think my personnal preference is the current implementation.More plotting options
I would like to add some more plotting options beyond the
geom_col
, which is effectively a histogram. It would be nice to add ageom_point
and ageom_line
, e.g.In terms of x-axis positioning, these would be set at the middle of the corresponding time interval.
Little helpers
It would be nice to offer some small helpers which will be frequently used. Again, community feedback will be useful there. I can think of, for instance:
Default styling
This is a big selling point, and I like the idea that the new version will look, well, new.
theme_bw()
?The text was updated successfully, but these errors were encountered: