Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

R ggplot 2 legend text

# Change the order of legend items
p + scale_x_discrete(limits=c("2", "0.5", "1"))

# Edit legend title and labels
p + scale_fill_discrete(name = "Dose", labels = c("A", "B", "C"))
Source by www.datanovia.com #
 
PREVIOUS NEXT
Tagged: #R #ggplot #legend #text
ADD COMMENT
Topic
Name
1+5 =