Skip to contents

Plot one-dimensional posterior probabilities

Usage

plotFsamples(
  file,
  learnt,
  data,
  plotprobability = TRUE,
  plotvariability = "samples",
  nFsamples = NULL,
  datahistogram = !(missing(data) || is.null(data)),
  datascatter = !(missing(data) || is.null(data)),
  parallel = TRUE,
  silent = FALSE
)

Arguments

file

string: name of plot output file

data

data.table object or filepath: datapoints

plotprobability

logical: plot the resulting probability curve

plotvariability

string, either 'samples' or 'quantiles': how to plot the variability of the probability distribution with new samples

nFsamples

positive number: if plotvariability='samples', then number of samples of representative frequency distributions to display as variability; if plotvariability='quantiles', then the quantiles (in range 0 to 0.5) to show

datahistogram

logical: plot the data as histogram?

datascatter

logical: plot the data as scatterplot along the x-axis?

parallel

Bool or numeric: whether to use pre-existing parallel workers, or how many to create and use

silent

logical: give warnings or updates in the computation

learned

Either a string with the name of a directory or full path for an 'learnt.rds' object, or such an object itself

Value

A list with the mutual information, its error, and its unit