
Function to create the Hilbert Plot
gghilbertplot(
df,
idcol,
color = NULL,
size = NULL,
label = NULL,
alpha = 1,
add_curve = FALSE,
curve_alpha = 1,
curve_color = "black",
jitter = 0
)
Data frame to generate plot from
The column name to be used for mapping (gghid)
The column to map to color
The column to map to size
The column that contains the label
The amount of alpha blending for the individual points
Whether or not to add the underlying hilbert curve
The amount of alpha blending for the hilbert curve
The color of the hilbert curve
The amount of jitter to add to prevent overplotting
a ggplot object
# NOT RUN {
tibble::tibble(val = 1:128, size = runif(128, 1, 5), color = rep(c(1,2,3,4),32)) %>%
gghilbertplot(val, color = factor(color), size = size, add_curve = TRUE)
# }
Run the code above in your browser using DataLab