R Studio Cleveland Dot Plot Graphs - Dots Not Showing

I am trying to create a dot plot graph entering the following code.
drg2018_s50_fusion <- filter(drg2018_s50,drg_definition =="460-spinal fusion except cervical w/o mcc")
diff_s50_fusion <- ggplot(drg2018_s50_fusion,aes(x=reorder(state,paymentdiff),y=paymentdiff))
diff_s50_fusion + geom_point(size=3) + coord_flip()
The graph, X Axis, and Y Axis appear but not dots appear. Not sure what I am doing wrong. Looking for any sort of help.
Thank you.

I do not see anything obviously wrong but I think we need to see all of your code and some sample data. See
FAQ Asking Questions

A handy way to supply some sample data is the dput() function. In the case of a large dataset something like dput(head(mydata, 100)) should supply the data we need. Just do dput(mydata) where mydata is your data. Copy the output and paste it here between

What does drg2018_s50_fusion look like?

1 Like

did u check the filter part work successful? does drg2018_s50_fusion actually has the data you want in it?

why do you need to reorder x axis?
did you try without declaring the size?

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.