A package to generate trelliscope displays.
There are 4 main types of displays:
- Heat Map
- Sankey Chart
- Tree Map
- Sunburst Chart
devtools::install_github("BYUIDSconsulting/PWtrelliscopeFunctions")
using the heatmap_trelliscope()
function you can create a trelliscope of heatmaps.
example:
heatmap_trelliscope(gapminder::gapminder, "continent",'year','country',"lifeExp")
using the sankey_trelliscope()
function yo ucan create a trelliscope of sankey charts
Example:
dat <- gapminder::gapminder
dat$year <- as.character(dat$year)
dat <- dat %>%
group_by(continent, country, year) %>%
summarise(pop = mean(pop))
PWtrelliscopeFunctions::sankey_trelliscope(data = dat
,facet = "year"
,quant_variable = "pop"
)
using the sunburst_trelliscope()
function yo ucan create a trelliscope of sunburst charts
Example:
dat <- gapminder::gapminder
dat$year <- as.character(dat$year)
dat <- dat %>%
group_by(continent, country, year) %>%
summarise(pop = mean(pop))
PWtrelliscopeFunctions::sunburst_trelliscope(data = dat
,facet = "year"
,quant_variable = "pop"
)
using the treemap_trelliscope()
function yo ucan create a trelliscope of treemap charts
Example:
dat <- gapminder::gapminder
dat$year <- as.character(dat$year)
dat <- dat %>%
group_by(continent, country, year) %>%
summarise(pop = mean(pop))
PWtrelliscopeFunctions::treemap_trelliscope(data = dat
,facet = "year"
,quant_variable = "pop"
)