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 bbc_style function seems very similar to any other ggplot theme function, like the theme_grey, theme_classic, theme_light, etc., built in to the ggplot2 package, or many others like those in the ggthemes package.
Except the name.
I think it'd be great to change the name of the function to theme_bbc if you'd like greater visibility consider submitting it to ggthemes. With theme_economist, theme_fivethirtyeight, and theme_wsj, theme_bbc would feel right at home :)
The text was updated successfully, but these errors were encountered:
Meant to add in my original post that it looks lovely :)
If you want to make this change internally as well, a nice way to go about renaming (to not break any existing code) is to make a copy. Rename the theme theme_bbc and add the line
bbc_style <- theme_bbc
Try to wean off of bbc_style. In a couple months, change it to
bbc_style <- function() {
warning("bbc_style is on a deprecation, please use theme_bbc() instead")
theme_bbc()
}
Eventually upgrade the warning to an error
bbc_style <- function() {
stop("bbc_style is deprecated, please use theme_bbc() instead")
}
The
bbc_style
function seems very similar to any otherggplot
theme function, like thetheme_grey
,theme_classic
,theme_light
, etc., built in to theggplot2
package, or many others like those in theggthemes
package.Except the name.
I think it'd be great to change the name of the function to
theme_bbc
if you'd like greater visibility consider submitting it toggthemes
. Withtheme_economist
,theme_fivethirtyeight
, andtheme_wsj
,theme_bbc
would feel right at home :)The text was updated successfully, but these errors were encountered: