# load example datasets
data("egSimSummary") # summary of stochastic simulation
data("egSimPerformance") # system performance calculated using the stochastic simulation
data("egClimData") # alternate climate data and system performance
plotPerformanceSpace(egSimPerformance[2], egSimSummary)
# adding climate data, using top 10 replicates
plotPerformanceSpace(egSimPerformance[1], egSimSummary, topReps = 10, climData = egClimData)
# adding a threshold
plotPerformanceSpace(egSimPerformance, egSimSummary, metric = "Avg. Deficit (L)",
climData = egClimData, perfThresh = 27.5, perfThreshLabel = "Max Avg. Deficit")
# user specified colMap
plotPerformanceSpace(egSimPerformance[1], egSimSummary, climData = egClimData, perfThresh = 27.5,
perfThreshLabel = "Max Avg. Deficit", colMap = viridisLite::inferno(100))
# example of performance generated using simple scaled simulation
data("egScalPerformance")
data("egScalSummary")
data("egClimData")
plotPerformanceSpace(egScalPerformance[1], egScalSummary, climData = egClimData,
perfThresh = 28.25, perfThreshLabel = "Max Avg. Deficit")
Run the code above in your browser using DataLab