Skip to content

Instantly share code, notes, and snippets.

View daranzolin's full-sized avatar
📈

David Ranzolin daranzolin

📈
View GitHub Profile
@daranzolin
daranzolin / geom_heart.r
Created February 16, 2021 23:23 — forked from EmilHvitfeldt/geom_heart.r
geom that uses hearts instead of points.
geom_heart <- function (mapping = NULL, data = NULL, stat = "identity", position = "identity",
..., parse = FALSE, nudge_x = 0, nudge_y = 0, check_overlap = FALSE,
na.rm = FALSE, show.legend = NA, inherit.aes = TRUE)
{
if (!missing(nudge_x) || !missing(nudge_y)) {
if (!missing(position)) {
stop("Specify either `position` or `nudge_x`/`nudge_y`",
call. = FALSE)
}
position <- position_nudge(nudge_x, nudge_y)
@daranzolin
daranzolin / .block
Created June 13, 2019 21:12 — forked from nbremer/.block
Radar Chart Redesign
height: 600
license: mit