It's going to require some tweaking to get where you're looking. As I mentioned, the viewport differs by device, so I got a better result in the regular R
console than I did in RStudio
. You'll be able to spot the lines easily to assign the palette and order the variables non-alphabetically.
Taking a look at help(theme)
will give you the dizzying array of ways to create a plot available. My regexp
was meant as an example of isolating the changeable embellishments to stand alone variables to avoid the finger damage of the plague of quotation marks and parens, and second, to change just one feature at a time.
And I should have emphasized that the colors need to be unique for each variable. Fortunately there are enough closely similar greens in your case.
Use
colors()
It was a good exercise for me. I never tried making all of these adjustment in one go, and I learned a lot.
Thanks.