Description Usage Arguments Details Value Examples
Generates Figure 6 country figures. Returns list with ggplot2 figures. Optionally exports Figure 6 as png.
1 |
listsf |
List of five sf objects created by prepTabcover.R |
dfsumC |
Dataframe with country population summary from resTabDemog.R |
dfsumB |
Dataframe with basin population summary. |
make_png |
Logical (TRUE/FALSE). Generate png version of Fig 4. |
Title
ggplot2 figures and optionally writes png file.
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
lsf <- prepTabcover(pBasin = B, pBasinSp = Bsp,
pBasinC = BC, riv = rin, make_shape = FALSE)
popc <- "~/ms/unpublished/2018 Unifilis demography/analises/dfpop.RDS"
demogC <- cmartr::demogCountry(popc = popc, rlc = lt$rlc)
save(demogC, file = "inst/ms_res/dfdemogC.RData")
dfsum <- cmartr::resTabDemog(demogC = demogC, make_html = FALSE)
save(dfsum, file = "inst/ms_res/dfsumC.RData")
fig4C <- resFig4(listsf = lsf, dfsumC = dfsum, dfsumB = NA)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.