library(ggpmisc)

ggplot(Table, aes(x = Date, y = Value, group = Group)) + 
   geom_line(size = 0.2) +
   scale_y_continuous("Value") +
   scale_x_date("Date", breaks = "4 years", labels = date_format("%Y"), expand = expansion(mult = 0, add = 0)) +
   annotate(geom = 'table', x = xValue, y = yValue, label = list(TitleTable)))

The generalized code above nets me the error message:

Error in f(...) : argument "table.theme" is missing, with no default

As far as I know, having looked through ggpmisc documentation, table.theme isn't an argument annotate even takes.

What's more maddening is this code worked a few days ago and got me the results I desired. re-running it without changing a thing (to my knowledge) now result in this error.

I'm also quite certain the source of the error is due to the annotate function, despite the message not explicitly stating as such, as running the ggplot function without it runs fine and yields the expected results.

0

There are 0 answers