Learn R Programming

carbonpredict (version 2.0.1)

plot_scope3_emissions: Plot Scope 3 Emissions Breakdown

Description

Plots a Sankey diagram showing the breakdown of Scope 3 emissions by category.

Usage

plot_scope3_emissions(scope3_df, company_name = NULL)

Value

A Sankey plot showing a breakdown for predicted emissions of each Scope 3 category.

Arguments

scope3_df

Data frame output from sme_scope3 (must contain 'Category', 'Description', and 'Predicted Emissions (tCO2e)').

company_name

Optional company name to include in the chart title (character string).

Examples

Run this code
scope3_df <- sme_scope3(85, 12000000)
plot_scope3_emissions(scope3_df, company_name = "Carbon Predict LTD")

Run the code above in your browser using DataLab