0

I am SUPER new to R.

I am trying to re-order the tick marks on my y-axis on a graph I created. Is there anyone who can tell me how to re-arrange/pick the order in which they line up? They labels are just elements from the "wheel_spot" vector. What I'm trying to show is how many of the dots on my graph fall in each category, but my graph will make more sense if the labels flow in a particular order.

Here's the graph right now:

enter image description here

My code is:

graph <- ggplot(data=new_data, aes(x=bucket,y=wheel_spot, color=identifier)) + geom_jitter() + facet_grid(bucket~.)
graph

Thank you in advance!

eipi10
  • 91,525
  • 24
  • 209
  • 285
Andrew Colin
  • 155
  • 1
  • 11

1 Answers1

0

You can provide a new order in ylab:

graph <- ggplot(data=new_data, aes(x=bucket,y=wheel_spot, color=identifier)) + geom_jitter() + facet_grid(bucket~.) + ylab(labels=c(...))
student
  • 1,001
  • 2
  • 12
  • 24