[R] Shape / Colour Configuration
@kobe@ @end|ng |rom @umm|te@rth@com
Thu Mar 5 23:56:19 CET 2020
My question didn't transfer through.
I have a PCA plot and there are four groups all with Shape 4; however, the default colours are hard to distinguish. I am wanting to change the colour or shape of select groupings to make it easier. My code is below.
> ggplot(soilall2, aes(PC1, PC2, col = Radar.Plot.Group, fill = Radar.Plot.Group)) + stat_ellipse(geom = "polygon", col = "black", alpha = 0.5) + geom_point(shape = 4)
Amber Kobes, P.Geo., B.Sc.
From: Sarah Goslee <sarah.goslee using gmail.com>
Sent: Thursday, March 5, 2020 1:56 PM
To: Amber Kobes <akobes using summitearth.com>
Cc: r-help using r-project.org
Subject: Re: [R] Shape / Colour Configuration
[EXTERNAL EMAIL] DO NOT CLICK links or attachments unless you recognize the sender and know the content is safe.
Without an actual question, it's hard to know what you want.
But take a look at hullplot in the dbscan package.
On Thu, Mar 5, 2020 at 3:54 PM Amber Kobes <akobes using summitearth.com> wrote:
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
Sarah Goslee (she/her)
More information about the R-help