sk: R6 Class for Plotting Network Diagrams

Description Usage Arguments Examples

Description

Plot sankey diagram from data stored in sqlite database. The database has 8 fields namely:

Usage

1
2
3
    SK$new( grp, yr, mth)
    SK$new( grp, yr, mth)$get_data()
    SK$new( grp, yr, mth)$plot(output_filename = NULL, font_size = 12)

Arguments

grp

name of the group of the netowrk diagram to plot

yr

year of the group

mth

Month of the group

output_filename

filename of the plot to save. If not specified will only display on screen

font_size

size of the labels in the network diagram

Examples

1
2
 beamaSankey::SK$new('wma_cons_mth',yr=2016,mth=2)$get_data()
 beamaSankey::SK$new('wma_cons_mth',yr=2016,mth=2)$plot()

eamoakohene/beamaSankey documentation built on Nov. 24, 2019, 2:15 a.m.