swoutput | R Documentation |
Creates LaTeX code for plot (magpie2ggplot2
) and data
table (print.xtable
) based on MAgPIE objects and adds
it to a "swStream"
object.
swoutput(stream,data,unit="unit",plot=TRUE,table=TRUE,scenarioName="default",
textSize=16,digits=0,plotLevel=NULL,...)
stream |
The |
data |
MAgPIE object or list of MAgPIE objects. For a list of MAgPIE objects the name of the list entry (has to be character) is used as scenario name. |
unit |
unit of data (Character). Used as ylab in
|
plot |
TRUE or FALSE. If TRUE, LaTeX code for plot
( |
table |
TRUE or FALSE. If TRUE, LaTeX code for data table
( |
scenarioName |
Name of the scenario. Only used if data is not a list. |
textSize |
Size of text used in |
digits |
Number of digits for rounding. Used in
|
plotLevel |
NULL for all (default), reg or glo |
... |
Further options passed to |
Creates preformatted plots and data tables based on MAgPIE objects. Format is optimized for readability. Data tables with more than 12 columns are rescaled for fitting on portrait pages.
No return value
Florian Humpenoeder
"swStream"
,swopen
,swclose
,swR
,swtable
,swfigure
## Not run:
sw<-swopen("croparea_reg.pdf")
swlatex(sw,"\newpage")
swlatex(sw,"\section{Croparea - regional}")
swoutput(sw,croparea(gdx),"mio. ha",scenario="test")
swclose(sw)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.