This is a high-level function for taking an object obtained as output from
haplo_selection and generating graphical output
written to files. The
graphs argument allows a high degree of
coustomization as to the graphs that will be generated. Some graphs input/output
combinations are not allowed (see
A list generated as output from the function
A character. The name of the directory to which the files should be written.
A named list containing at most 6 elements corresponding to the
names of elements in a list output by function
Arguments passed to function
graphs option currently results in no graphs being generated.
Sensible defaults still have to be defined.
The output is directed by default to the current directory. An error is thrown if the suggested output directory already exists, else a new directory with this name is created. This is meant to avoid name conflicts and file overwriting, but this could be changed in the future.
This function calls high-level plotting functions defined in the package itself :
genotype_plot. These functions are called in the context of
haplo_graphs with their default values, but finer control could be
obtained by using these functions directly.
Arguments can be passed to function
ggplot::ggsave, which directs the
height default to 7). PDF files are generated
NULL, invisibly. The function is called for its side effect of
writing graphs to files.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.