The above worked for me, though it doesn't correspond to the appropriate values and thus messed up my axes.
Here is my code:
Data_Freq.Poly.1 <-
ggplot(Data, aes(x = Data)) +
labs(x = "Data", y = "Frequency", title = "Frequency Polygon of the Data Provided") +
geom_freqpoly(center = 67.5,
bins = 7,
colour = "black") +
geom_point(stat = "bin",
aes(y = ..count..),
bins = 7) +
scale_x_continuous(breaks = seq(39.5, 95.5, by = 8)) +
scale_y_continuous(breaks = c(0:12)) +
theme_classic()
theme(plot.title = element_text(hjust = 0.5,
face = "bold",
size = 16))
Data_Freq.Poly.1
Here is my graph:
[Why are the points not on the line?][1]
Here is what it should look like:
I've had to add the points manually on my tablet