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)
This is a report on a regression found in revdep checks, that presents as follows:
ggplot2/revdep/problems.md
Lines 374 to 375 in d31c051
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 settingna.value = NA
.Created on 2024-09-11 with reprex v2.1.1
The text was updated successfully, but these errors were encountered: