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
However, with geom_sf(), shape = 23 works fine but shape = "diamond filled" doesn’t work anymore:
# from example of geom_sf()geo_data<-sf::st_read(system.file("shape/nc.shp", package="sf"), quiet=TRUE) |>sf::st_transform(3857)
geo_data$geometry<-sf::st_centroid(geo_data$geometry)
ggplot(geo_data) +
geom_sf(shape=23, color="red", fill="black")
I didn't see anything in the docs of geom_sf() or in the docs section linked above mentioning some differences in shape support between geom_sf() and geom_point(). I did a few tests and it seems this is the case for all shape names, not just "diamond filled".
Tried with ggplot2 3.5.0 and Github version.
Thanks
The text was updated successfully, but these errors were encountered:
etiennebacher
changed the title
geom_sf(): POINT geometry doesn't work with shape full namesgeom_sf(): POINT geometry doesn't work with shape names
Mar 26, 2024
Hello, in
geom_point()
, passingshape = 23
orshape = "diamond filled"
is the same thing (based on this section from the docs):However, with
geom_sf()
,shape = 23
works fine butshape = "diamond filled"
doesn’t work anymore:Session info
I didn't see anything in the docs of
geom_sf()
or in the docs section linked above mentioning some differences inshape
support betweengeom_sf()
andgeom_point()
. I did a few tests and it seems this is the case for allshape
names, not just"diamond filled"
.Tried with
ggplot2
3.5.0 and Github version.Thanks
The text was updated successfully, but these errors were encountered: