Guofang Liu
The figsci package is a R package used to plot a scatterplot, one-way or two-way barplot annonated by statistical parameter, visualizing phylogenetic barplot with its associated continuous variables, make agenda plot, and randomized block experiment layout, search R packages based on developer's name, save R data.frame into excel format, search influential factors by means of regular expression, and ten segments boundary for Southern Sea China, transform PDF into png with given DPI, etc.
#install.packages("devtools")
devtools::install_github("liuguofang/figsci")
library(figsci)
If it doesn't work, you downloaded the zip file (you will see the green button "clone or download." on top right place), unzipped it and the following worked.
devtools::install("C:\\Users\\liuguofang\\Desktop\\figsci-master") # please replace your own file path.
The scatterplot.r2p
function can make a scatterplot with R2 and p value for ordinary linear regressions.
data(leaflife,package='smatr')
scatterplot.r2p(dat=leaflife,x='longev',y='lma',group='soilp',pty=c(1,19),
xlab=Leaf~longevity~(yr),ylab=~LMA~(kg~m^-2))