This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/*
just here so that plotly works
correctly with ioslides.
see https://github.com/ropensci/plotly/issues/463
*/
slide:not(.current) .plotly.html-widget{
display: none;
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
inst/outdata/png/MAIF.png

37.2 KiB

inst/outdata/png/cereals.png

37.2 KiB

inst/outdata/png/oil_cake.png

46.5 KiB

inst/outdata/png/scenario_Rest_fig.png

207 KiB

File added
File added
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<style>body{background-color:white;}</style>
<script src="lib/htmlwidgets-1.5.3/htmlwidgets.js"></script>
<script src="lib/plotly-binding-4.9.3/plotly.js"></script>
<script src="lib/typedarray-0.1/typedarray.min.js"></script>
<script src="lib/jquery-3.5.1/jquery.min.js"></script>
<link href="lib/crosstalk-1.1.1/css/crosstalk.css" rel="stylesheet" />
<script src="lib/crosstalk-1.1.1/js/crosstalk.min.js"></script>
<link href="lib/plotly-htmlwidgets-css-1.57.1/plotly-htmlwidgets.css" rel="stylesheet" />
<script src="lib/plotly-main-1.57.1/plotly-latest.min.js"></script>
<title>plotly</title>
</head>
<body>
<div id="htmlwidget_container">
<div id="htmlwidget-677afb1c5f36eba752f6" style="width:800px;height:800px;" class="plotly html-widget"></div>
</div>
<script type="application/json" data-for="htmlwidget-677afb1c5f36eba752f6">{"x":{"visdat":{"38a0f72268e":["function () ","plotlyVisDat"]},"cur_data":"38a0f72268e","attrs":{"38a0f72268e":{"domain":{"x":[0,1],"y":[0,1]},"orientation":"h","arrangement":"snap","valueformat":".0f","valuesuffix":" tonnes","node":{"label":["Production: 303,5K (0.6%)","Imports: 15,0K (-60.4%)","Barley: 51,9K (-1.5%)","Grain maize: 65,5K (-13.8%)","Other cereals: 14,9K (-25.1%)","Wheat: 132,4K (-2.8%)","Poultry meat: 13,1K (-8.5%)","Rice milled: 2,5K (3.6%)","Sugar: 20,4K (-2.1%)","Fish and other acquatic products: 17,7K (3.7%)","Human Consumption: 112,7K (1.1%)","Processing: 14,7K (-22.4%)","Biofuels: 12,3K (-0.7%)","Feed: 140,0K (-5.1%)","Exports: 39,1K (-20.7%)"],"color":["#969696","#ff7f0e","#45B39D","#7DCEA0","#BFC9CA","#F7DC6F","#F2D7D5","#5DADE2","#D0D3D4","#85C1E9","#17becf","#2ca02c","#74c476","#2ca02c","#F7DC6F"],"x":[0.01,0.01,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.8,0.8,0.8,0.8,0.8],"y":[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.1,0.2,0.1,0.3,0.5,0.7,0.9],"pad":20,"thickness":15,"line":{"color":"blau","width":1}},"link":{"source":[0,1,2,2,2,2,2,0,1,3,3,3,3,3,0,1,4,4,4,4,4,0,1,5,5,5,5,5,0,1,6,6,6,0,1,7,7,7,7,7,0,1,8,8,8,8,8,0,1,9,9,9,9],"target":[2,2,10,11,12,13,14,3,3,10,11,12,13,14,4,4,10,11,12,13,14,5,5,10,11,12,13,14,6,6,10,11,14,7,7,10,11,12,13,14,8,8,10,11,12,13,14,9,9,10,11,13,14],"value":[51892.9967069049,2.01000602828572e-007,9752.93159776373,17.2414055053206,1889.48417200288,30760.8998600704,9472.4396717636,65546.345167067,1.45361336763017e-005,6020.16464114617,5362.25444755395,2849.9180011859,50933.994372001,380.013719716095,14922.4613886127,1.47112691593065e-005,1575.54397522481,4238.9756472274,291.618004921902,8814.13769962314,2.1860763267569,132409.826381757,1.65497658599634e-006,57621.4140104716,3445.13030830759,4398.07062247164,47233.5676334413,19711.6438087199,12662.4985779683,426.541444794128,11617.5270808534,1.24371074346969,1470.26923116563,2399.24089962653,58.9346004497768,1931.02122879904,7.21168186960709,11.7839877513627,38.6586603624467,0.00577094284869238,18090.191805479,2322.99026811297,14215.9005832435,1452.18741116372,2873.53114444393,58.2948751532958,2710.82483243518,5546.27678905341,12183.2329649039,9963.715043138,197.250632173728,2208.17643107389,5360.36764757173],"color":["#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FAEDEC80","#FAEDEC80","#FAEDEC80","#FAEDEC80","#FAEDEC80","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780"]},"alpha_stroke":1,"sizes":[10,100],"spans":[1,20],"type":"sankey"}},"layout":{"width":800,"height":800,"margin":{"b":50,"l":10,"t":50,"r":10,"pad":40},"autosize":false,"title":"Market Balance in Tonnens","font":{"size":13,"family":"Arial"},"xaxis":{"showgrid":false,"zeroline":false},"yaxis":{"showgrid":false,"zeroline":false},"hovermode":"closest","showlegend":false},"source":"A","config":{"showSendToCloud":false},"data":[{"domain":{"x":[0,1],"y":[0,1]},"orientation":"h","arrangement":"snap","valueformat":".0f","valuesuffix":" tonnes","node":{"label":["Production: 303,5K (0.6%)","Imports: 15,0K (-60.4%)","Barley: 51,9K (-1.5%)","Grain maize: 65,5K (-13.8%)","Other cereals: 14,9K (-25.1%)","Wheat: 132,4K (-2.8%)","Poultry meat: 13,1K (-8.5%)","Rice milled: 2,5K (3.6%)","Sugar: 20,4K (-2.1%)","Fish and other acquatic products: 17,7K (3.7%)","Human Consumption: 112,7K (1.1%)","Processing: 14,7K (-22.4%)","Biofuels: 12,3K (-0.7%)","Feed: 140,0K (-5.1%)","Exports: 39,1K (-20.7%)"],"color":["#969696","#ff7f0e","#45B39D","#7DCEA0","#BFC9CA","#F7DC6F","#F2D7D5","#5DADE2","#D0D3D4","#85C1E9","#17becf","#2ca02c","#74c476","#2ca02c","#F7DC6F"],"x":[0.01,0.01,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.4,0.8,0.8,0.8,0.8,0.8],"y":[0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.1,0.2,0.1,0.3,0.5,0.7,0.9],"pad":20,"thickness":15,"line":{"color":"blau","width":1}},"link":{"source":[0,1,2,2,2,2,2,0,1,3,3,3,3,3,0,1,4,4,4,4,4,0,1,5,5,5,5,5,0,1,6,6,6,0,1,7,7,7,7,7,0,1,8,8,8,8,8,0,1,9,9,9,9],"target":[2,2,10,11,12,13,14,3,3,10,11,12,13,14,4,4,10,11,12,13,14,5,5,10,11,12,13,14,6,6,10,11,14,7,7,10,11,12,13,14,8,8,10,11,12,13,14,9,9,10,11,13,14],"value":[51892.9967069049,2.01000602828572e-007,9752.93159776373,17.2414055053206,1889.48417200288,30760.8998600704,9472.4396717636,65546.345167067,1.45361336763017e-005,6020.16464114617,5362.25444755395,2849.9180011859,50933.994372001,380.013719716095,14922.4613886127,1.47112691593065e-005,1575.54397522481,4238.9756472274,291.618004921902,8814.13769962314,2.1860763267569,132409.826381757,1.65497658599634e-006,57621.4140104716,3445.13030830759,4398.07062247164,47233.5676334413,19711.6438087199,12662.4985779683,426.541444794128,11617.5270808534,1.24371074346969,1470.26923116563,2399.24089962653,58.9346004497768,1931.02122879904,7.21168186960709,11.7839877513627,38.6586603624467,0.00577094284869238,18090.191805479,2322.99026811297,14215.9005832435,1452.18741116372,2873.53114444393,58.2948751532958,2710.82483243518,5546.27678905341,12183.2329649039,9963.715043138,197.250632173728,2208.17643107389,5360.36764757173],"color":["#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#91DDD080","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#BCEAD180","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#E2E7E780","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FCF0B180","#FAEDEC80","#FAEDEC80","#FAEDEC80","#FAEDEC80","#FAEDEC80","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#A5D9F480","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#EAECEC80","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780","#C1E3F780"]},"type":"sankey","frame":null}],"highlight":{"on":"plotly_click","persistent":false,"dynamic":false,"selectize":false,"opacityDim":0.2,"selected":{"opacity":1},"debounce":0},"shinyEvents":["plotly_hover","plotly_click","plotly_selected","plotly_relayout","plotly_brushed","plotly_brushing","plotly_clickannotation","plotly_doubleclick","plotly_deselect","plotly_afterplot","plotly_sunburstclick"],"base_url":"https://plot.ly"},"evals":[],"jsHooks":[]}</script>
<script type="application/htmlwidget-sizing" data-for="htmlwidget-677afb1c5f36eba752f6">{"viewer":{"width":800,"height":800,"padding":0,"fill":false},"browser":{"width":800,"height":800,"padding":0,"fill":false}}</script>
</body>
</html>
This diff is collapsed.
man/colorMode.Rd 0 → 100644
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/capri_maps.R
\name{colorMode}
\alias{colorMode}
\title{define color}
\usage{
colorMode()
}
\description{
define color
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
\alias{plot_sankey} \alias{plot_sankey}
\title{function draws sankey diagram and saves html pages for sankey} \title{function draws sankey diagram and saves html pages for sankey}
\usage{ \usage{
plot_sankey(links, nodes, p_baseline, Png) plot_sankey(links, nodes, p_baseline, png)
} }
\arguments{ \arguments{
\item{links}{a data frame object with the links between the nodes. It should have include the Source and Target for each link. An optional Value variable can be included to specify how close the nodes are to one another.} \item{links}{a data frame object with the links between the nodes. It should have include the Source and Target for each link. An optional Value variable can be included to specify how close the nodes are to one another.}
......