Alter Legend position of a R ggplot2 Violin Plot. By default, ggplot position the legend at the right side of a violin plot. In this example, we change the legend position of the R ggplot violin plot from right to the top. Note, You can use a legend.position = “none” to altogether remove the legend.
How to change the text of a ggplot2 legend title - 2 example codes - Manually modify the title of a ggplot in R - Different alternatives & reproducible code. This article explains how to change the text of a ggplot2 legend in R. The tutorial is structured as follows