1

I keep getting this a on my colour legend when I make this graph in GGPLOT2.

ggplot(sher_ei_si, aes(SI, EI, shape = crop, label = treatment, colour =
        management)) +
        geom_point() +
        geom_text_repel(aes(SI, EI)) +
        xlim(0, 100) +
        ylim(0, 100) +
        labs(x = "Structure", y = "Enrichment", shape = "Crop", colour =
            "Management") +
        geom_vline(xintercept = 50) +
        geom_hline(yintercept = 50) +
        scale_colour_manual(values = c("grey0", "grey60")

Plot showing a under colour legend enter image description here

Prradep
  • 5,506
  • 5
  • 43
  • 84
wortly
  • 13
  • 5

1 Answers1

1

For exact output generation, please provide the input data.


You can use show.legend = FALSE to exclude the a symbol from your example:

geom_text_repel(aes(SI, EI), show.legend = FALSE)
Prradep
  • 5,506
  • 5
  • 43
  • 84