AI-SDC / ACRO

Tools for the Automatic Checking of Research Outputs. These are the tools for researchers to use as drop-in replacements for commands that produce outputs in Stata Python and R

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for making histograms from R

rpreen opened this issue · comments

Add functionality to support images generated from plots such as histograms - I think this involves modifying the records module so that there is another function that will record the path to the generated plot, plus the status summary (pass, fail, review, etc.) and then a list of strings which contain details from the checks that give the reason for the status.

Duplicate of #70

Modifying the r records module is the major part.

Calculating the risk for something created via pd.DataFrame.hist() is actually faulty straightforward:

  • takres a parameter bins which is either an int or a list of bin edges
  • that is passed straight through to plt.hist, which ion turn passes it through to numpy.hist()
  • numpy returns an array (or maybe a list) of frequency counts

Main thing is to map the parameters. for R syntax through to pandas syntax to call there acro function