haplo_graphs | R Documentation |
This is a high-level function for taking an object obtained as output from
the function 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 Details
).
haplo_graphs(results, output_dir = ".", graphs = "default", ...)
results |
A list generated as output from the function |
output_dir |
A character. The name of the directory to which the files should be written. |
graphs |
A named list containing at most 6 elements corresponding to the
names of elements in a list output by function |
... |
Arguments passed to function |
The default 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 :
density_plot
, ld_plot
, distance_plot
,
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
output (width
and height
default to 7). PDF files are generated
by default.
NULL
, invisibly. The function is called for its side effect of
writing graphs to files.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.