Skip to content

gg_subseries() error when index column name has spaces #136

Description

@heiku-jiqu

Hello,

I am getting an error with gg_subseries when my tsibble's index column is named with spaces, e.g. Year Month. There's an error message saying "Don't know how to automatically pick scale for object of type NULL. Defaulting to continuous", which seems to stem from the expr_text() in the line below.

scale_fn <- paste0("scale_x_", ggplot2::scale_type(data[[expr_text(idx)]])[1])

Maybe using as_name() or as_label() instead of expr_text() will help?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions