This kind of plot is easily done with ggplot. I do not know how to do it with the base plot() function. If your data frame already has a column that shows how frequent each value is, then the plot can be made like this:
library(ggplot2)
DF <- data.frame(Value1 = 1:4, Value2 = c(2,5,9,14),
Number = c(15, 8, 1, 26))
DF
#> Value1 Value2 Number
#> 1 1 2 15
#> 2 2 5 8
#> 3 3 9 1
#> 4 4 14 26
ggplot(data = DF, mapping = aes(x = Value1, y = Value2, size = Number)) +
geom_point() + labs(x = "My X Label", y = "The Y Label",
title = "Title of the Plot")

Created on 2022-03-02 by the reprex package (v2.0.1)
If your data do not match that example, please show some of your data.