Skip to content

plot.FFTrees() is not written in a modular way and should be refactored #221

@ndphillips

Description

@ndphillips

Currently plot.FFTrees(), creates a dashboard of multiple plotting elements (i.e.; Bars, tree, icons, confusion matrix, ROC).

image

The script creating this dashboard https://github.com/ndphillips/FFTrees/blob/master/R/plotFFTrees_function.R is over 2,000 lines long in one massive function.

Having so much code in one script makes it difficult to debug and doesn't lend itself well to creating user functions that allow them to selectively plot some of the plotting elements, some of which may not even technically need data to create.

  • For example, I have often wanted to quickly plot an example FFT, without any icons, for demonstration purposes and without the need to actually train on data - just to create a diagram representing a tree of interest. Currently the code to do this is in the function but can't easily be separated from training a tree.

Goals

  • Re-factor plot.FFTrees() to be a wrapper around sub-functions that create each of the elements of the dashboard.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions