0

I am trying to plot each point on a geom_histogram() with titles beneath each line. I want it to look like this: histogram with labels with each bar

but my graph look this in R: Black graph with no labels

This is my current code:

row.names(east) <- c("Daytona Beach, Fl","Palm Bay, FL","Mytrle Beach, SC","Folly BEach,SC","Bethel Beach, VA","Sandy Hook,NJ","Pleasure Bay, MA","Wingaersheek Beach, MA","Odiorne Point, NH","Bar Harbour, ME")


ggplot(east,aes(east))+
  geom_histogram()

I have already labelled everything.

Dave2e
  • 18,599
  • 18
  • 35
  • 42
  • 2
    The plot you want it to look like is not a histogram, that's a bar chart. use `geom_bar()` rather then `geom_histogram()`. Possibly you may want to use `geom_col()` depending on your data. ggplot doesn't use row. names so I'm not sure what you are doing there. It's easier to help you if you include a simple [reproducible example](https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example) with sample input that can be used to test and verify possible solutions. – MrFlick Oct 22 '21 at 21:17

0 Answers0