Here is my sample dataset:
df1 = data.frame(Count.amp = c(8,8,1,2,2,5,8), Count.amp.1 = c(4,4,2,3,2,5,4))
I tried
library(ggplot2)
qplot(Count.amp,Count.amp.1, data=df1)
Is there any way to plot in such a way that the size of the dot is proportional to the number of elements in each dots?
Yes, broadly speaking you are looking at creating a bubble plot, this code:
would give you something like that:
It wasn't immediately clear to me what do yo mean by the number of elements but on principle you can pass any figures into the
size=
to get the desired result.