I would like to use a new point shape on ggplot2, and use it the same way as geom_point().
I know that ggstar implements some new shapes, but I would like to use the following:
It's created just combining a circle with a rect, creating this new shape
I think the code of ggstar to create the shapes is in the following link, but I couldn't understand and recreate it:
https://github.com/xiangpin/ggstar/blob/master/R/primitive.R
I see Allan Cameron created a new grob on this answer, but I don't know how to recreate this new shape, and add the ability to use angle
argument
Building on the answer from @AllanCameron and the suggestion from @Friede in his comment here is one possible approach to achieve your desired result which also allows for an
angle
argument: