Closed
Description
Related to issue #402 and #2112, scale_shape_identity
works with a continues variable but with the legend attribute, it doesn't.
library(ggplot2)
df2 <- data.frame(x = 1:5 , y = 1:10, z = 1:10)
s <- ggplot(df2, aes(x = x, y = y))
s +
geom_point(aes(shape = z), size = 4) +
scale_shape_identity(guide = 'legend')
#> Error: Continuous value supplied to discrete scale
Created on 2018-12-07 by the reprex package (v0.2.1)