Modify the "size" of geom_link function in R

Viewed 118

This is the dataframe

df <- data.frame(x=c(60,69,50), y=c(0,14,75), x2=c(80,78,75), y2= c(72,10,92))

and this the code

library(ggplot2)
library(ggforce)

ggplot(df) +
  geom_link(aes(x = x, y = y, xend = x2, yend = y2, alpha = 0.1, size = stat(index)), lineend = "round")

I want to modify the size of geom_link but I didn't figure out how

enter image description here

0 Answers
Related