Lake Huron Historical Depths

How do current or projected depths compare

Kevin Bailey

Percentile Ranks of Lake Depths

When trying to understand historical drainage and climate information, it's important to understand the context of individual data points when examining historical data.

What is it doing?

The lake depth slider tool uses the Lake Huron dataset that comes with the R datasets library to create a histogram of historical lake depths, and project a ranking line and return a percentile rank for a specific lake depth measurement via a sliderbar.

library(datasets)
data("LakeHuron")

What are the underlying functions?

It is written in R and using Shiny for the UI and Server components.

This is using the hist function for creating the histogram

hist(LakeHuron)

plot of chunk unnamed-chunk-2

Percentile Rank

the ecdf function is used to generate the percentile rank for the input value based on the dataset

for example:

pct_rank <- round(ecdf(LakeHuron)(579), 2)

returns 0.44 for an input depth of 579

Where can I try it out?