I have a scatter plot for the 10 variables samples . I also get the variable mean and variable median. I just wondering how to add the point plot of the mean and median to the scatterplot which is Pairs in r. If you have any other method(ggplot2) or function can achieve the same goal I am also willing to accept that.
Thank you so much for your great help and kindness
a <- matrix(rnorm(5000, 10, 1) + rgamma(5000, 1, 2), 50, 10)
var_mean <- apply(a, 2, mean)
var_median <- apply(a, 2, median)
pairs(a)

