flowchart 0.2.0
CRAN release: 2024-04-09
Major changes
Added new
N=argument in functionsas_fc(),fc_filter()andfc_split()to enter the number of rows manually in case that a dataframe is not available.New
fc_export()function to export a flowchart in the desired format.Solved bug when performing a split. Now the x-coordinates of the resulting boxes are placed symmetrically around the parent box, not homogeneously distributed across all the space.
Minor changes
Added
round_digits=argument tofc_filter()andfc_split()functions, which allows to change the number of decimals to round percentages.Added
show_zero=argument tofc_split(), which allows to control whether the groups with zero events should be shown in a box or not.Updated description with minimum R version (>= 4.1.0).
flowchart 0.3.0
CRAN release: 2024-05-10
Major changes
Bug in the
fc_split()function when splitting by a factor with levels that are not arranged in alphabetical order.Bug in the
fc_split()function when performing multiple splits and showing percentages. These percentages were calculated based on the total number of rows, not the total number of rows in each of the groups defined by the previous splits.
flowchart 0.4.0
CRAN release: 2024-05-29
Minor changes
Changed
safobuilt-in datasetNow
unite=FALSEis the default in thefc_stack()functionAdded
bmpformat to thefc_export()function
flowchart 0.5.0
CRAN release: 2024-09-26
Major changes
New arguments
text_fface,text_ffamilyandtext_paddingto change the font face, font family and padding of the text inside the boxNew argument
perc_totalto calculate percentages with respect to the total number of rowsNew argument
offsetto add space to the distance between boxes in a split, andoffset_excto add space to the distance from the exclude box in a filterNew function
fc_view()to view the$fcelement or the$dataelement, associated to a flowchartNew argument
titlein thefc_draw()function to add a title to a flowchart, along with some additional arguments to customize itNew argument
titlein thefc_split()function to add a title box in a split, together with some additional arguments to customize itBug in the exclusion box out of margins
Minor changes
Added minimum version for dplyr (>= 1.1.0)
Bug in the
fc_export()function when using theformatargumentReplaced evaluations to tidy evaluations using
rlang::eval_tidy()
flowchart 0.6.0
CRAN release: 2024-11-08
Added
box_cornersargument tofc_draw()to allow drawing boxes with or without round corners; default set to"round"to avoid breaking changes (#2; @kenkomodo)Updated
fc_export()to include vector formats (svg, pdf) and to useraggin place ofgrDevicesfor relevant bitmap formats (png, jpeg, tiff) for improved performance and image quality whenraggis installed (#16; @kenkomodo)Methods for S3 class
fccorrectly definedBug in the
hide = TRUEoption inas_fc()Bug when specifying
sel_groupandNat the same time infc_split()Bug when specifying
titleinfc_split()with a number of splits different than two
flowchart 0.7.0
CRAN release: 2025-01-20
Solved
bugwhensel_groupis used repeatedly in the same flowchartChanged y-coordinate distribution of boxes when using
fc_stack()withunite = TRUEWhen performing multiple splits in a flowchart, the group label is stored in
$fcconcatenating the values of the different groups separated by ‘//’Allow expressions in the label argument to produce bold or italics text, or even formulas
flowchart 0.8.0
CRAN release: 2025-04-23
Solved
bugwhenperc_total = TRUEis used together withshow_exc = TRUE.Solved
bugwhen applyingfc_filter()in a box with missing values.Added
big.markargument tofc_draw()to allow users to insert a thousands separator for values ofnandNprinted in flowchart boxes (e.g.,big.mark = ","results in"1,000") (#26; @kenkomodo)Updated package functions to throw warnings using
cli; added dependency oncli(@kenkomodo)Added test suite for package functions (@kenkomodo)
Updated
fc_draw()withcanvas_bgargument which allows the user to specify the flowchart canvas background color or to set it to"transparent"(#30; @kenkomodo)Updated
fc_export()to accept the newcanvas_bgargument fromfc_draw()and apply it accordingly to the exported flowchart image (#30; @kenkomodo)Solved
bugcausingfc_export()to drop newerfc_draw()arguments when redrawing the flowchart for export (#32; @kenkomodo)New
widthandheightarguments foras_fc(),fc_filter()andfc_split()functions to manually set the size of boxes.
flowchart 0.9.0
CRAN release: 2025-08-22
New
fc_theme()function to set all parameters for all boxes in a flowchart at once.Split up
flowchartvignette into multiple different articles and updated_pkgdown.ymlto builddevversion of site separately while defaulting to currently released CRAN version (#37).The
text_patternargument now allows expressions, so users can now format text other than the label in bold.Now all arguments available in the graphic device function are also available in the
fc_export()function.Fixed bug when
sel_groupis used in a split (#40).Stack flowcharts with
unite=TRUEif there are more boxes in the last level of the first flowchart than in the first level of the second flowchart.Fixed
bugallowing trailing zeros to be trimmed regardless ofround_digitsargument infc_filter()andfc_split()(@kenkomodo)Updated
fc_draw()with arguments to control arrow shape and color:arrow_color,arrow_fill,arrow_lwd,arrow_lineend, andarrow_linejoin. Updatedfc_export()to use new arguments for flowchart image export. (#43; @kenkomodo)A new argument,
title, has been added to theas_fc()andfc_filter()functions to allow for the addition of titles at each step of the flowchart. The existingtitleargument infc_split()has also been updated for consistency.
