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
Might be nice to allow arbitrary geometries to be used with the thickness aesthetic... probably something that wraps the layers and applies the thickness scaling to thickness values and then adds them to x or y as appropriate....
would only work with scale_thickness_shared()
would need some way to specify which aesthetics to add the thickness to --- maybe if thickness values are scaled relative to 0 this would just be solved by something like after_scale(y = y + thickness)? Not sure if justification and side would work correctly in this case though. So might need to just pass a set of aesthetics to add the thickness to.
would ideally handle side and justification
ideally something like with_thickness(geom_text(aes(xdist = d, y = some_factor, thickness = density(d, Mode(d))), label = "mode")) would work, though it might be hard to get there.
The text was updated successfully, but these errors were encountered:
mjskay
changed the title
Layer wrapping that allows arbitrary geometries to be used with the thickness aesthetic
Layer wrapper that allows arbitrary geometries to be used with the thickness aesthetic
Feb 27, 2024
Might be nice to allow arbitrary geometries to be used with the thickness aesthetic... probably something that wraps the layers and applies the thickness scaling to
thickness
values and then adds them tox
ory
as appropriate....scale_thickness_shared()
thickness
values are scaled relative to0
this would just be solved by something likeafter_scale(y = y + thickness)
? Not sure ifjustification
andside
would work correctly in this case though. So might need to just pass a set of aesthetics to add the thickness to.side
andjustification
with_thickness(geom_text(aes(xdist = d, y = some_factor, thickness = density(d, Mode(d))), label = "mode"))
would work, though it might be hard to get there.The text was updated successfully, but these errors were encountered: