I am plotting some simple variables in R, something like:
a<- runif(1000, 1, 100)
b<- runif(1000, 30, 200)
c<- runif(1000, 45, 160)
plot(sort(a),sort(b), xlab = "fraction of population a", ylab = "something happening to population a")
points(sort(a), sort(c), col="red")
legend("topleft", legend = c("time 0", "time 1"), pch=1, lwd=2.5, col = c("black","red"))
this gives the following plot:
Now I would like to add an additional information to acknowledge that my population a
changed between time 0
and time 1
. This would be best added as a little bubble chart in the bottom right corner of the plot. Something like the following graph (but just displaying the pop_a_time_0
and pop_a_time_1
):
Would this be possible?