Skip to content

scale_shape_identity doesn't work with guide = 'legend' #3029

Closed
@caayala

Description

@caayala

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions