View source: R/plot_qtl_info.R
plot_qtl_info | R Documentation |
Takes the output from find_genes_qtls_around_markers and create plots for the frequency of each QTL type and trait
plot_qtl_info(
qtl_file,
qtl_plot = c("qtl_type", "qtl_name"),
n = "all",
qtl_class = NULL,
horiz = FALSE,
...
)
qtl_file |
The output from find_genes_qtls_around_markers function |
qtl_plot |
"qtl_type" or"qtl_name" |
n |
Number of QTLs to be plotted when the qtl_name option is selected |
qtl_class |
Class of QTLs to be plotted when the qtl_name option is selected |
horiz |
The legend of the pie plot for the qtl_type should be plotted vertically or horizontally. The default is FALSE. Therefore, the legend is plotted vertically. |
... |
Arguments to be passed to/from other methods. For the default method these can include further arguments (such as axes, asp and main) and graphical parameters (see par) which are passed to plot.window(), title() and axis. |
A plot with the requested information
data(QTLmarkers)
data(gffQTLs)
out.qtls<-find_genes_qtls_around_markers(db_file=gffQTLs,
marker_file=QTLmarkers, method = "qtl",
marker = "snp", interval = 500000,
nThreads = 1)
plot_qtl_info(out.qtls, qtl_plot = "qtl_type", cex=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.