Produces a scatterplot via ggplot
1 | scatterPlot(df, xvar, yvar, pt_col, ln_col, cl_col, ...)
|
1 2 3 4 5 6 7 8 9 | devtools::install_github("wesanderson","jhollist")
library('wesanderson')
data(LakeTrophicModelling)
mydf<-data.frame(chla=ltmData[["CHLA"]],biovp1=ltmData[["sumBioV"]]+1)
zissou2<-wes.palette(5,"Zissou2")
scatterPlot(mydf,xvar="chla",yvar="biovp1",zissou2[3],zissou2[2],zissou2[1],
title="Chlorophyll and Cyanobacterai Relationship",
x=expression(paste('Log10(Chl ', italic("a"),')')),
y="Log10(Cyanobaterial Abundance + 1)")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.