I am currently trying to create a simple boxplot for my university project and can't seem to figure out what I'm doing wrong.
My current code is as follows:
ggplot(wait_c_long, aes(x='Period', y='Days waited at the 50th percentile')) + geom_point()
wait_c_long = My dataframe
Period = Ordered factor class variable of time periods e.g. '2014-15'...'2018-19'.
Days waited at the 50th percentile = Numerical class variable of average wait times.
Here is a screenshot of my dataset for reference:
Whenever I run the previously stated command it results in the following output
with only a single datapoints and advises me that the variable on the y axis is discrete although it is numeric.
Ideally, I would like to create a simple scatterplot with the geom_point function using the following aes(x='Period',y='Days waited at the 50th percentile', color = 'State', size = 'Admissions')
to create a data visualisation from my dataset that I can use in my assignment so any help would be really appreciated.