library(DiagrammeR)
mermaid('
graph LR
A[Organic NYS dry bean farms] --> E[Cleaner/Aggregator]
B[Conventional NYS dry bean farms] --> E
C[Organic out-of-state drybean farms] --> E
D[Conventional out-of-state drybean farms] --> E
C --> F[Out-of-state cleaner/aggregator]
D --> F[Out-of-state cleaner/aggregator]
G[Organic NYS soybean farms]
H[Conventional NYS soybean farms]
click A "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#cost-of-production" "Data"
click B "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#cost-of-production" "Data"
click C "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#outside-nys-producers" "Data"
click D "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#outside-nys-producers" "Data"
click G "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#soybeans" "Data"
click H "https://allison-bauman.quarto.pub/cityfoodpolicy/drybeans/farmgate.html#soybeans" "Data"
')3 Model parameterization
This is still a work in progress and just shows examples of how we might document this section.
library(DiagrammeR)
mermaid('
graph LR
A[Land] --> D[Farm Production]
B[Labor ]--> D
C[Farm Inputs] --> D
click A "https://github.com/FoodSystemsModeling/CityFoodPolicy" "Data"
click B "https://allison-bauman.quarto.pub/cityfoodpolicy/code/drybeans/data.html"
')mermaid('
graph LR;
A(Land)--> D(Farm <br/> Production)
B(Labor)-->D
C(Farm <br/> Inputs)-->D
D-->E(On Farm <br/> Cleaning/ <br/> Sorting/Packing)
D-->F(Cleaner <br/> Aggregator)
F-->G(Primary <br/> Processor)
F-->H(Wholesale)
G-->H
G-->I(Secondary <br/> Processor)
I-->H
H-->J(Distributor)
J-->K(Retail/ <br/> Restaurants)
J-->L(Institutions)
K-->M(Consumer)
D-->N(Dropship <br/> Broker)
N-->O(Export <br/> Markets)
G-->K
G-->L
click A "https://github.com/FoodSystemsModeling/CityFoodPolicy"
click B "https://allison-bauman.quarto.pub/cityfoodpolicy/code/drybeans/data.html"
style A fill:#fff, stroke:#000
style B fill:#fff, stroke:#000
style C fill:#fff, stroke:#000
style D fill:#fff, stroke:#000
style F fill:#fff, stroke:#000
style G fill:#fff, stroke:#000
style H fill:#fff, stroke:#000
style I fill:#fff, stroke:#000
style J fill:#fff, stroke:#000
style L fill:#fff, stroke:#000
style E fill:#c4e1f3, stroke:#000
style K fill:#c4e1f3, stroke:#000
style N fill:#c4e1f3, stroke:#000
style O fill:#c4e1f3, stroke:#000
style M fill:#c4e1f3, stroke:#000
')