Description Usage Arguments Examples
Plot NPS Driver Scenarios
| 1 2 | 
| x | Output from  | 
| NPS | The current NPS in the data | 
| scenarios | Vector of scenarios to plot | 
| ... | Parameters passed on to  | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(NPS)
library(NPSdrivers)
library(dplyr)
data(survey_sim)
NPS <- NPS::nps(survey_sim$recommend)
survey_sim <- survey_sim %>%
  mutate(NPC = factor(npc(recommend), ordered = TRUE)) %>%
  select(-recommend)
m <- model_survey(survey_sim)
scenario_results <- run_scenarios(m)
plot(scenario_results, NPS)
plot(scenario_results, NPS, c(1, 2, 5))
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.