Make ridgeline plot of ratios of residential population percentage to its average
Source:R/plot_ridgeline_ratios.R
      plot_ridgeline_ratios.RdMake ridgeline plot of ratios of residential population percentage to its average
Usage
plot_ridgeline_ratios(
  ratio.to.us.d.bysite,
  shortlabels = NULL,
  main = "Variations among Sites",
  maxratio = 5
)Examples
 out <- testoutput_ejamit_1000pts_1miles
 ratio.to.us.d.bysite <- out$results_bysite[ ,  c(
   ..names_d_ratio_to_avg, ..names_d_subgroups_ratio_to_avg
   )]
 # plot_ridgeline_ratios(ratio.to.us.d.bysite)
 # cap the ratio, for better plot
 x <- as.matrix(ratio.to.us.d.bysite)
 plot_ridgeline_ratios(data.table::data.table(x))
#> Error in unit(0.1, "lines"): could not find function "unit"