Created
January 11, 2019 09:51
-
-
Save andybega/abed6a8dc097f86d936f61b377480e63 to your computer and use it in GitHub Desktop.
Reprex for win-builder R devel ggplot2-related error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library("ggplot2") | |
df <- structure(list(date = structure(c(17532, 17897, 18262, 18993, | |
19358, 19723, 20089), class = "Date"), id = c("9991", "9991", | |
"9991", "9992", "9992", "9992", "9992"), cowcode = c(999, 999, | |
999, 999, 999, 999, 999), y = c(1, 1, 1, 2, 2, 2, 2)), row.names = c(NA, | |
-7L), class = "data.frame") | |
ggplot(df, aes(x = date, y = y, group = cowcode)) + geom_line() | |
# Relevant portion of the trace: | |
# 5: ggplot2::scale_y_discrete(breaks = brks) | |
# 6: discrete_scale(c("y", "ymin", "ymax", "yend"), "position_d", identity, ..., expand = expand, | |
# guide = "none") | |
# 7: structure(list(call = match.call(), aesthetics = aesthetics, scale_name = scale_name, | |
# palette = palette, range = DiscreteRange$new(), limits = limits, na.value = na.value, | |
# expand = expand, name = name, breaks = breaks, labels = labels, legend = legend, | |
# drop = drop, guide = guide), class = c(scale_name, "discrete", "scale")) | |
# 8: DiscreteRange$new() | |
# 9: stop("`inherit` must be a R6ClassGenerator.") | |
# | |
# ... | |
# | |
# Message: `inherit` must be a R6ClassGenerator. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment