Draw Line Segment to Plot in R (Example) | segments Function Explained | How to Add Lines to Plots

preview_player
Показать описание
R code of this video:

plot(0, 0, col = "white", xlab = "", ylab = "") # Create empty example plot

segments(x0 = - 1, y0 = - 0.5, x1 = 0.5, y1 = 0) # Draw one line
Рекомендации по теме