2

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

user2957945
  • 2,353
  • 2
  • 21
  • 40

0 Answers0