Skip to content

[bug]: cannot globally set theme #143

@kellijohnson-NOAA

Description

@kellijohnson-NOAA

I tried

# Use the {stockplotr} theme for all figures
ggplot2::theme_set(stockplotr::theme_noaa())

Error in `ggplot2::theme_set()`:
! `new` must be a <theme> object, not a list.
Run `rlang::last_trace()` to see where the error occurred.

where I thought I could set the theme in a .Rmd file like I would normally do with ggplot2::theme_set(ggplot2::theme_bw()) but it did not work.

Using

remotes::install_github("nmfs-ost/stockplotr@revamped-baseline-plot")

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions