-1
I had to rename the Y variables of a ggplot, but I need them to be in ascending order so that the data correctly track its variables. I need you to start with #MB02
myc_t
DateTime Receiver Transmitter ID Transmitter.Serial Sensor.Value Sensor.Unit Station Name Longitude Latitude
2019-04-29 05:31:33 134321 4828 Fran 1305297 28.7 °C PRN 102 121
2019-04-29 08:52:08 134325 4830 Beni 1305283 4.2 m MVW 102 178
2019-04-29 08:53:13 134325 4831 Silvo 1305283 28.6 °C MVW 150 178
ggplot(myc_t,aes(x=DateTime,y=Transmitter)) + geom_point(stat="identity") +
labs(x = "Período de monitoramento acústico", y = "Frequência de detecção")+ scale_y_discrete(labels = c("#MB04", "#MB05","#MB06","#MB07","#MB08","#MB03","#MB09","#MB10", "#MB11", "#MB12", "#MB02", "#MB13", "#MB14", "#MB15", "#MB16"))
Hi Franciele, you can pass your data with dput() the way this is difficult to answer, but probably you will use something with
aes(x = DateTime,y = fct_reorder(Transmitter,alguma_coluna)
– Bruno
See the guide on how to ask a good question here and here
– Guilherme Parreira