Switch Order of Boxplots

Hello,
I have a graph that I need to switch the order of the boxplots to be: avianpredator, terrestrialpredator, baseline, control. How do I switch the order of this?
Rplot

This is my current code:
ggplot(data= s7)+
geom_boxplot(mapping=aes(x= trial.category, y= FAD.m))+
geom_jitter(mapping=aes(x= trial.category, y= FAD.m), alpha=0.3)+
labs(title= "Rural")+
xlab("Predator Type") + ylab("FAD (m)") +
theme_classic()+
theme(plot.title=element_text(hjust=0, vjust=1, face="bold",size=18))+
theme(axis.title.x=element_text(size=14,face="bold"),axis.title.y=element_text(size=14, face= "bold"))+
theme(axis.text.x= element_text(size=12),axis.text.y=element_text(size=12))

I have already tried:
s7 %>% mutate(trial.category=factor(trial.category, levels= c("avianpredator", "terrestrialpredator", "baseline", "control"), ordered=TRUE))
ggplot(data= s7)+
geom_boxplot(mapping=aes(x= trial.category, y= FAD.m))+
geom_jitter(mapping=aes(x= trial.category, y= FAD.m), alpha=0.3)+
labs(title= "Rural")+
xlab("Predator Type") + ylab("FAD (m)") +
theme_classic()+
theme(plot.title=element_text(hjust=0, vjust=1, face="bold",size=18))+
theme(axis.title.x=element_text(size=14,face="bold"),axis.title.y=element_text(size=14, face= "bold"))+
theme(axis.text.x= element_text(size=12),axis.text.y=element_text(size=12))

Thanks for including the code you are using, but for us to help you better, can you please share a small part of the data set in a copy-paste friendly format?

In case you don't know how to do it, there are many options, which include:

  1. If you have stored the data set in some R object, dput function is very handy.

  2. In case the data set is in a spreadsheet, check out the datapasta package. Take a look at this link.

structure(list(Treatment = structure(c(1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L), .Label = c("Baseline", "Manipulation"
), class = "factor"), location = structure(c(6L, 6L, 6L, 6L,
6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L,
6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L, 6L), .Label = c("County Farm Park ",
"Diag", "Nichols Arboretum", "North Campus", "Prospect Park",
"Saginaw Forest"), class = "factor"), site.category = structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("rural",
"suburban", "urban"), class = "factor"), date = structure(c(9L,
9L, 9L, 9L, 9L, 9L, 9L, 17L, 17L, 17L, 17L, 17L, 1L, 1L, 4L,
13L, 15L, 1L, 4L, 15L, 4L, 13L, 15L, 1L, 4L, 4L, 15L, 13L, 1L,
13L), .Label = c("1/12/20", "1/13/20", "1/21/20", "1/22/20",
"1/25/20", "1/27/20", "10/25/19", "10/27/19", "10/28/19", "11/10/19",
"11/15/19", "11/16/19", "11/18/19", "11/22/19", "11/23/19", "11/24/19",
"11/4/19", "11/7/19"), class = "factor"), Julian.Date = c(301L,
301L, 301L, 301L, 301L, 301L, 301L, 308L, 308L, 308L, 308L, 308L,
12L, 12L, 22L, 322L, 327L, 12L, 22L, 327L, 22L, 322L, 327L, 12L,
22L, 22L, 327L, 322L, 12L, 322L), trial.type = structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 2L, 2L, 2L, 3L, 3L,
4L, 4L, 5L, 5L, 6L, 6L, 6L, 6L, 6L, 7L, 8L, 8L, 10L), .Label = c("baseline",
"control A", "control B", "control C", "dog A", "dog B", "dog C",
"hawk A", "hawk B", "hawk C"), class = "factor"), trial.category = structure(c(2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 3L, 3L, 3L, 3L, 3L,
3L, 3L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 4L, 1L, 1L, 1L), .Label = c("avianpredator",
"baseline", "control", "terrestrialpredator"), class = "factor"),
human.presence = c(1L, 1L, 1L, 1L, 1L, 1L, 1L, 0L, 0L, 0L,
0L, 0L, 0L, 0L, 0L, 0L, 1L, 0L, 0L, 1L, 0L, 0L, 1L, 0L, 0L,
0L, 1L, 0L, 0L, 0L), dog.presence = c(1L, 1L, 1L, 1L, 1L,
1L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L,
0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L), temperature.F = c(51L,
51L, 51L, 51L, 51L, 51L, 51L, 49L, 49L, 49L, 49L, 49L, 29L,
29L, 25L, 28L, 34L, 29L, 25L, 34L, 25L, 28L, 34L, 29L, 25L,
25L, 34L, 28L, 29L, 28L), weather = structure(c(5L, 5L, 5L,
5L, 5L, 5L, 5L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 5L, 3L, 2L, 1L,
5L, 2L, 5L, 3L, 2L, 1L, 5L, 5L, 2L, 3L, 1L, 3L), .Label = c("cloudy",
"mostly sunny", "partly cloudy", "partly sunny", "sunny"), class = "factor"),
trial.start.time = structure(c(94L, 101L, 107L, 110L, 114L,
118L, 121L, 35L, 45L, 51L, 60L, 69L, 14L, 50L, 55L, 2L, 61L,
1L, 75L, 42L, 85L, 23L, 53L, 26L, 44L, 62L, 74L, 9L, 37L,
32L), .Label = c("10:02", "10:03", "10:05", "10:10", "10:12",
"10:18", "10:24", "10:28", "10:31", "10:32", "10:34", "10:37",
"10:42", "10:45", "10:47", "10:48", "10:55", "11:01", "11:02",
"11:03", "11:14", "11:18", "11:19", "11:20", "11:21", "11:22",
"11:29", "11:35", "11:38", "11:40", "11:42", "11:44", "11:46",
"11:49", "11:50", "11:58", "11:59", "12:01", "12:03", "12:05",
"12:06", "12:08", "12:10", "12:13", "12:14", "12:21", "12:24",
"12:31", "12:32", "12:36", "12:37", "12:44", "12:45", "12:47",
"12:49", "12:50", "13:02", "13:03", "13:07", "13:09", "13:14",
"13:16", "13:17", "13:18", "13:21", "13:22", "13:27", "13:31",
"13:33", "13:39", "13:41", "13:47", "13:48", "13:52", "13:55",
"13:56", "13:57", "14:01", "14:03", "14:15", "14:19", "14:21",
"14:22", "14:24", "14:26", "14:35", "14:36", "14:37", "14:40",
"14:50", "14:51", "14:52", "15:00", "15:06", "15:09", "15:13",
"15:14", "15:24", "15:25", "15:30", "15:38", "15:39", "15:46",
"15:47", "15:51", "15:59", "16:09", "16:15", "16:30", "16:43",
"16:48", "17:02", "17:03", "17:07", "17:19", "17:20", "17:31",
"17:34", "17:39", "17:43", "17:52", "17:58", "18:01", "18:10",
"8:02", "8:12", "8:25", "8:37", "8:50", "9:02", "9:03", "9:04",
"9:06", "9:12", "9:16", "9:19", "9:21", "9:23", "9:26", "9:32",
"9:37", "9:38", "9:41", "9:44", "9:50", "9:51", "9:56"), class = "factor"),
trial.end.time = structure(c(96L, 105L, 111L, 116L, 119L,
123L, 126L, 39L, 48L, 53L, 63L, 73L, 18L, 51L, 57L, 3L, 64L,
2L, 77L, 45L, 88L, 29L, 54L, 30L, 46L, 67L, 77L, 15L, 41L,
38L), .Label = c("10:00", "10:04", "10:05", "10:07", "10:09",
"10:13", "10:14", "10:15", "10:26", "10:30", "10:31", "10:33",
"10:34", "10:37", "10:38", "10:41", "10:44", "10:47", "10:48",
"10:50", "10:58", "11:03", "11:04", "11:09", "11:15", "11:20",
"11:22", "11:23", "11:25", "11:26", "11:31", "11:36", "11:40",
"11:44", "11:46", "11:49", "11:52", "11:54", "11:59", "12:01",
"12:05", "12:06", "12:08", "12:11", "12:15", "12:17", "12:19",
"12:22", "12:28", "12:32", "12:38", "12:47", "12:48", "12:49",
"12:50", "12:53", "12:56", "1234", "13:03", "13:04", "13:05",
"13:10", "13:15", "13:17", "13:18", "13:20", "13:22", "13:23",
"13:24", "13:30", "13:33", "13:35", "13:40", "13:44", "13:48",
"13:50", "13:59", "14:00", "14:03", "14:05", "14:08", "14:17",
"14:18", "14:21", "14:23", "14:25", "14:27", "14:30", "14:37",
"14:38", "14:43", "14:53", "14:57", "14:58", "15:03", "15:10",
"15:11", "15:15", "15:18", "15:25", "15:30", "15:31", "15:40",
"15:42", "15:47", "15:48", "15:49", "15:53", "16:00", "16:11",
"16:15", "16:17", "16:33", "16:44", "16:50", "16:51", "17:04",
"17:05", "17:11", "17:20", "17:22", "17:34", "17:36", "17:40",
"17:44", "18:01", "18:02", "18:12", "8:03", "8:14", "8:27",
"8:41", "8:51", "9:03", "9:05", "9:06", "9:08", "9:13", "9:17",
"9:22", "9:24", "9:29", "9:33", "9:35", "9:38", "9:42", "9:47",
"9:52"), class = "factor"), initial..behavior = structure(c(2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 2L), .Label = c("feeding",
"foraging"), class = "factor"), sex = structure(c(2L, 1L,
2L, 2L, 1L, 2L, 1L, 2L, 1L, 2L, 2L, 1L, 1L, 1L, 1L, 1L, 2L,
1L, 1L, 2L, 1L, 1L, 1L, 1L, 1L, 2L, 1L, 1L, 2L, 2L), .Label = c("female",
"male"), class = "factor"), GPS.start.position = structure(c(76L,
58L, 59L, 67L, 81L, 75L, 68L, 83L, 82L, 84L, 61L, 66L, 70L,
78L, 80L, 74L, 79L, 85L, 77L, 73L, 69L, 60L, 64L, 63L, 62L,
72L, 71L, 57L, 56L, 65L), .Label = c("N 42°14.772' W 083°36.047'",
"N 42°14.780' W 083°36.047'", "N 42°14.782' W 083°36.075'",
"N 42°14.786' W 083°36.069", "N 42°14.788' W 083°36.079'",
"N 42°14.793' W 083°36.059'", "N 42°14.793' W 083°36.117'",
"N 42°14.797' W 083°36.107'", "N 42°14.798' W 083°36.051'",
"N 42°14.804' W 083°36.037'", "N 42°14.804' W 083°36.124'",
"N 42°14.806' W 083°36.114'", "N 42°14.807' W 083°36.043'",
"N 42°14.807' W 083°36.054'", "N 42°14.815' W 083°36.033'",
"N 42°14.817' W 083°36.023'", "N 42°14.824' W 083°36.023'",
"N 42°14.832' W 083°36.081'", "N 42°14.834 W 083°36.050'",
"N 42°14.834' W 083°36.025'", "N 42°14.837' W 083°36.079'",
"N 42°14.861' W 083°36.093'", "N 42°14.863' W 083°36.094'",
"N 42°15.365' W 083°42.486'", "N 42°15.367' W 083°42.484'",
"N 42°15.367' W 083°42.536'", "N 42°15.368' W 083°42.478'",
"N 42°15.368' W 083°42.510'", "N 42°15.372' W 083°42.557'",
"N 42°15.374' W 083°42.525'", "N 42°15.375' W 083°42.567'",
"N 42°15.381' W 083°42.454' ", "N 42°15.382' W 083°42.577'",
"N 42°15.384' W 083°42.591' ", "N 42°15.394' W 083°42.587' ",
"N 42°15.401' W 083°42.591'", "N 42°15.403' W 083°42.432'",
"N 42°15.411' W 083°42.581'", "N 42°15.413' W 083°42.442'",
"N 42°15.417' W 083°42.489'", "N 42°15.422' W 083°42.572'",
"N 42°15.423' W 083°42.441'", "N 42°15.425' W 083°42.465'",
"N 42°15.428' W 083°42.461'", "N 42°15.433' W 083°42.426'",
"N 42°15.434' W 083°42.511'", "N 42°15.437' W 083°42.560'",
"N 42°15.438' W 083°42.562'", "N 42°15.439' W 083°42.432'",
"N 42°15.443' W 083°42.444'", "N 42°15.445' W 083°42.434'",
"N 42°15.450' W 083°42.545'", "N 42°15.452' W 083°42.552'",
"N 42°15.455' W 083°42.561'", "N 42°15.462' W 083°42.492'",
"N 42°16.238' W 083°48.490'", "N 42°16.262' W 083°48.486'",
"N 42°16.265' W 083°48.484'", "N 42°16.279' W 083°48.438' ",
"N 42°16.283' W 083°48.538' ", "N 42°16.290' W 083°48.502'",
"N 42°16.294' W 083°48.555' ", "N 42°16.299' W 083°48.536'",
"N 42°16.306' W 083°48.382' ", "N 42°16.309' W 083°48.526'",
"N 42°16.310' W 083°48.446'", "N 42°16.310' W 083°48.520'",
"N 42°16.311' W 083°48.386' ", "N 42°16.313' W 083°48.479'",
"N 42°16.313' W 083°48.481'", "N 42°16.313' W 083°48.488'",
"N 42°16.317' W 083°48.409'", "N 42°16.318' W 083°48.424'",
"N 42°16.321' W 083°48.386' ", "N 42°16.322' W 083°48.366'",
"N 42°16.323' W 083°48.391' ", "N 42°16.324' W 083°48.328'",
"N 42°16.328' W 083°48.350' ", "N 42°16.330' W 083°48.396' ",
"N 42°16.336' W 083°48.426' ", "N 42°16.338' W 083°48.416'",
"N 42°16.341' W 083°48.426' ", "N 42°16.342' W 083°48.471' ",
"N 42°16.342' W 083°48.506'", "N 42°16.351' W 083°48.446' ",
"N 42°16.581' W 083°44.359'", "N 42°16.585' W 083°44.233'",
"N 42°16.595' W 083°44.228'", "N 42°16.601' W 083°44.251' ",
"N 42°16.602' W 083°44.299'", "N 42°16.603' W 083°44.291'",
"N 42°16.605' W 083°44.209' ", "N 42°16.608' W 083°44.263'",
"N 42°16.611' W 083°44.237' ", "N 42°16.612' W 083°44.236'",
"N 42°16.612' W 083°44.359'", "N 42°16.613' W 083°44.254'",
"N 42°16.615' W 083°44.216' ", "N 42°16.615' W 083°44.224'",
"N 42°16.617' W 083°44.229'", "N 42°16.618' W 083°44.248'",
"N 42°16.618' W 083°44.256'", "N 42°16.618' W 083°44.260'",
"N 42°16.619' W 083°44.251'", "N 42°16.620' W 083°44.233'",
"N 42°16.621' W 083°44.231'", "N 42°16.621' W 083°44.234'",
"N 42°16.624' W 083°44.228"", "N 42°16.625' W 083°44.242'",
"N 42°16.626' W 083°44.252'", "N 42°16.627' W 083°44.236'",
"N 42°16.629' W 083°44.281'", "N 42°16.630' W 083°44.255'",
"N 42°16.635' W 083°44.284'", "N 42°16.639' W 083°44.322'",
"N 42°16.639' W 083°44.348'", "N 42°16.651' W 083°44.333'",
"N 42°16.658' W 083°44.330'", "N 42°16.789' W 083°43.406' ",
"N 42°16.800' W 083°43.194' ", "N 42°16.802' W 083°43.355'",
"N 42°16.806' W 083°43.392' ", "N 42°16.855' W 083°43.386'",
"N 42°16.858' W 083°43.232'", "N 42°16.871' W 083°43.385' ",
"N 42°16.879' W 083°43.347' ", "N 42°16.884' W 083°43.339' ",
"N 42°16.890' W 083°43.423' ", "N 42°16.895' W 083°43.332'",
"N 42°16.896' W 083°43.292' ", "N 42°16.910' W 083°43.394' ",
"N 42°16.913' W 083°43.258'", "N 42°16.915' W 083°43.393' ",
"N 42°16.915' W 083°43.397' ", "N 42°16.918' W 083°43.387' ",
"N 42°16.924' W 083°43.378' ", "N 42°16.926' W 083°43.225'",
"N 42°16.935' W 083°43.468' ", "N 42°16.943' W 083°43.181'",
"N 42°16.943' W 083°43.181' ", "N 42°16.948' W 083°43.418' ",
"N 42°16.956' W 083°43.527'", "N 42°16.957' W 083°43.131' ",
"N 42°16.961' W 083°43.517'", "N 42°16.963' W 083°43.536'",
"N 42°16.969' W 083°44.207'", "N 42°16.998' W 083°43.046'",
"N 42°17.381' W 083°42.758'", "N 42°17.389' W 083°43.006'",
"N 42°17.389' W 083°43.016'", "N 42°17.393' W 083°43.006'",
"N 42°17.400' W 083°42.730'", "N 42°17.445' W 083°43.051' ",
"N 42°17.459' W 083°43.130'", "N 42°17.528' W 083°43.109' ",
"N 42°17.543' W 083°43.174'", "N 42°17.545' W 083°43.172'",
"N 42°17.552' W 083°42.745'", "N 42°17.584' W 083°42.792'",
"N 42°17.644' W 083°43.198'", "N 42°17.647' W 083°43.195'",
"N 42°17.647' W 083°43.200'", "N 42°17.649' W 083°43.194'",
"N 42°17.732' W 083°43.194'", "N 42°17.736' W 083°43.128'",
"N 42°17.737' W 083°43.138'", "N 42°17.741' W 083°43.132'",
"N 42°17.741' W 083°43.146'", "N 42°17.782' W 083°43.158'",
"N 42°17.784' W 083°43.148'", "N 42°17.784' W 083°43.150'"
), class = "factor"), initial.distance.m = c(22.9, 19, 11.7,
31.2, 19.3, 27.2, 15, 28.9, 37.2, 25.9, 10.6, 18.1, 11.2,
16.8, 19.3, 15.4, 12.7, 24.9, 15.8, 17.3, 13.6, 20.8, 22.4,
22.5, 31.3, 8.3, 19.3, 11.9, 12.9, 29.1), FAD.m = c(17.6,
16.4, 10.2, 20.5, 15, 22.6, 13.2, 18.3, 20.8, 23.6, 9.8,
9.8, 9.8, 15.5, 18.2, 12.6, 11.3, 20.8, 14.7, 16.2, 12.1,
18.9, 19.7, 19.7, 19.5, 7.9, 18.2, 11.5, 10.9, 22.5), FID.m = c(17.6,
15.7, 10.2, 20.5, 13.5, 21.6, 13.2, 14.4, 16.8, 22.9, 9.8,
9.6, 9.8, 14.6, 17.7, 11.7, 10.1, 19.3, 13.5, 16.2, 11.5,
18.2, 18.4, 18.3, 19.1, 7.9, 18.2, 11.5, 10.1, 21), closest.tree.distance.m = c(0.8,
1.6, 3.9, 1.8, 3.1, 4.9, 2.9, 2, 4.5, 3.4, 3.1, 2, 3.4, 1.7,
2.4, 2.4, 1.3, 1.9, 3.5, 4.8, 2, 3.2, 1, 5.6, 6.1, 1.5, 4.4,
3.8, 2.9, 2.2), refuge.tree.distance.m = c(0, 2.7, 3.9, 1.8,
0, 0, 2.9, 2, 4.5, 4.1, 3.1, 4, 3.4, 1.9, 2.4, 0, 1.3, 1.9,
3.5, 5.3, 2, 3.2, 1, 5.6, 0, 1.5, 5.6, 3.8, 2.9, 0), refuge.taken = structure(c(1L,
2L, 2L, 2L, 1L, 1L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 1L,
2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 1L, 2L, 2L, 2L, 2L, 1L), .Label = c("no",
"yes"), class = "factor"), treed.distance.total.m = c(0,
8.6, 9.7, 10.5, 0, 0, 8.9, 8, 10.1, 13.3, 6, 10.8, 0, 4.4,
7.5, 0, 5.8, 1.7, 8.1, 8.6, 10.1, 5.3, 6.1, 11.5, 0, 5.9,
8.3, 9.5, 9.5, 0), flight.distance.total.m = c(8.2, 0, 0,
0, 4, 7.5, 0, 0, 0, 0, 0, 0, 4.1, 0, 0, 3.1, 0, 0, 0, 0,
0, 0, 0, 0, 8.1, 0, 0, 0, 0, 5.1), latency.s = c(193L, 482L,
293L, 462L, 191L, 47L, 450L, 495L, 399L, 10L, 304L, 325L,
62L, 57L, 375L, 127L, 153L, 71L, 219L, 364L, 215L, 334L,
182L, 182L, 227L, 322L, 376L, 373L, 331L, 600L), squirrel.approach = structure(c(1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L), .Label = c("no",
"yes"), class = "factor"), notes = structure(c(1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L,
1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 1L, 3L), .Label = c("",
"after FAD, squirrel approached me, football weekend -ND",
"closest tree between me and squirrel, ran to branch on ground then stopped",
"construction at Kraus", "football weekend-ND", "recess ended",
"recess on playground"), class = "factor")), row.names = 142:171, class = "data.frame")

You were very close with your original code:

s7 %>% mutate(trial.category=factor(trial.category, levels= c("avianpredator", "terrestrialpredator", "baseline", "control"), ordered=TRUE))

This code performs the releveling, but you need to save a copy of it. This code does not modify the input data, you need to explicitly save a copy of the releveld data (perhaps using the same name, s7).

Instead do this:

s7 <- s7 %>% mutate(trial.category=factor(trial.category, levels= c("avianpredator", "terrestrialpredator", "baseline", "control"), ordered=TRUE))

Then...

ggplot(data= s7) +
  geom_boxplot(mapping=aes(x= trial.category, y= FAD.m))+
  geom_jitter(mapping=aes(x= trial.category, y= FAD.m), alpha=0.3)+
  labs(title= "Rural")+
  xlab("Predator Type") + ylab("FAD (m)") +
  theme_classic() +
  theme(plot.title=element_text(hjust=0, vjust=1, face="bold",size=18)) + theme(axis.title.x=element_text(size=14,face="bold"),axis.title.y=element_text(size=14, face= "bold")) +
  theme(axis.text.x= element_text(size=12),axis.text.y=element_text(size=12))

Okay perfect! One last thing, how would I change the labels on the x axis? So it says "Avian Predator" instead of "avianpredator"?

You can modify the scale layer by adding this to your ggplot:

scale_x_discrete(labels = c('Avian Predator', ...))
1 Like

Perfect! Thank you so much!

1 Like

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