do_fan: Compute summary statistics for 'stat_fan'

View source: R/do_fan.R

do_fanR Documentation

Compute summary statistics for stat_fan

Description

Extracts the limits of the Ntiles of a distribution for use in the stat_fan function

Usage

do_fan(x, step = 0.01)

Arguments

x

the value to summarize

step

the number of bins to break the data into, based on the quantile function

Value

a data.frame containing

  • ymin : the lower limit of the quantile

  • ymax : the upper limit of the quantile

  • id : an identifier for the quantile

  • percent : the fill color to use in geom_fan

Examples

FanEuStockMarkets <- lapply(colnames(EuStockMarkets),function(id) {
    res <- do_fan(EuStockMarkets[,id])
    res$id <- id
    return(res)
})
FanEuStockMarkets <- do.call(rbind,FanEuStockMarkets)


cytofan documentation built on April 11, 2025, 5:42 p.m.