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
Error in grid.Call.graphics(C_lines, x$x, x$y, index, x$arrow) :
invalid line type: must be length 2, 4, 6 or 8
Briefly, setting a numeric linetype palette will throw error because na.value = "blank" which will cast the linetype as characters, which grid will not accept. I propose setting na.value = NA.
devtools::load_all("~/packages/ggplot2/")
#> ℹ Loading ggplot2p<- ggplot(economics_long, aes(date, value01)) +
geom_line(aes(linetype=variable))
p+ scale_linetype_manual(values=1:5)
#> Error in grid.Call.graphics(C_lines, x$x, x$y, index, x$arrow): invalid line type: must be length 2, 4, 6 or 8p+ scale_linetype_manual(values=1:5, na.value=NA)
Activity