There are a number of ways in which one may wish to customize the interactive graphs produced by R/qtlcharts, such as different colors or axis labels. Our main approach to allow such customization is through a function argument, chartOpts.

Use of these options is described in the R/qtlcharts User Guide.

The following is a complete listing of the customization options for each chart.

iboxplot

width = 1000 — width of image in pixels

height = 900 — total height of image in pixels

margin = list(left=60, top=20, right=60, bottom=40) — margins in pixels (left, top, right, bottom)

ylab = "Response" — y-axis label

xlab = "Individuals" — x-axis label

rectcolor = "#E6E6E6" — color of background rectangle

qucolors = NULL — vector of colors for the quantile curves

histcolors = c("#0074D9", "#FF4136", "#3D9970", "MediumVioletRed", "black") — vector of colors for selected histograms

iheatmap

height = 800 — total height of chart

width = 800 — total width of chart

htop = height/2 — height of top charts in pixels

wleft = width/2 — width of left charts in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

rectcolor = "#E6E6E6" — color of background rectangle

nullcolor = "#E6E6E6" — color of pixels with null values

strokecolor = "slateblue" — line color

strokewidth = 2 — line width

xlim = NULL — x-axis limits

ylim = NULL — y-axis limits

nxticks = 5 — no. ticks on x-axis

xticks = NULL — vector of tick positions on x-axis

nyticks = 5 — no. ticks on y-axis

yticks = NULL — vector of tick positions on y-axis

nzticks = 5 — no. ticks on z-axis

zticks = NULL — vector of tick positions on z-axis

title = "" — title for chart

xlab = "X" — x-axis label

ylab = "Y" — y-axis label

zlab = "Z" — z-axis label

zthresh = NULL — lower threshold for plotting in heat map: only values with |z| > zthresh are shown

zlim = c(-max(z), 0, max(z)) — z-axis limits

colors = c("slateblue", "white", "crimson") — heat map colors (same length as zlim)

iplot

height = 500 — height of chart in pixels

width = 800 — width of chart in pixels

title = "" — title for chart

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

xlab = "X" — x-axis label

ylab = "Y" — y-axis label

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

xlim = NULL — x-axis limits

xticks = NULL — vector of tick positions on x-axis

nxticks = 5 — no. ticks on x-axis

ylim = NULL — y-axis limits

yticks = NULL — vector of tick positions on y-axis

nyticks = 5 — no. ticks on y-axis

rectcolor = "#E6E6E6" — color of background rectangle

pointcolor = NULL — colors for points

pointsize = 3 — size of points in pixels

pointstroke = "black" — color of outer circle for points

rotate_ylab = NULL — whether to rotate the y-axis label

xNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values (handle=T/F, force=T/F, width, gap)

yNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values (handle=T/F, force=T/F, width, gap)

iplotCorr

height = 560 — height of each panel in pixels

width = 1050 — total width of panels

margin = list(left=70, top=40, right=5, bottom=70, inner=5) — margins in pixels (left, top, right, bottom, inner)

corcolors = c("darkslateblue", "white", "crimson") — heat map colors (same length as zlim)

zlim = c(-1, 0, 1) — z-axis limits

rectcolor = "#E6E6E6" — color of background rectangle

cortitle = "" — title for heatmap panel

scattitle = "" — title for scatterplot panel

scatcolors = NULL — vector of point colors for scatterplot

iplotCorr

height = 560 — height of each panel in pixels

width = 1050 — total width of panels

margin = list(left=70, top=40, right=5, bottom=70, inner=5) — margins in pixels (left, top, right, bottom, inner)

corcolors = c("darkslateblue", "white", "crimson") — heat map colors (same length as zlim)

zlim = c(-1, 0, 1) — z-axis limits

rectcolor = "#E6E6E6" — color of background rectangle

cortitle = "" — title for heatmap panel

iplotCurves

height = 1000 — total height of chart in pixels

width = 1000 — total width of chart in pixels

htop = height/2 — height of curves chart in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

rectcolor = "#E6E6E6" — color of background rectangle

pointcolor = NULL — vector of colors for points in scatterplots

pointstroke = "black" — color of line outline for points in scatterplots

pointsize = 3 — size of points in scatterplots

pointcolorhilit = NULL — vector of colors for points in scatterplots, when highlighted

pointsizehilit = 6 — zie of points in scatterplot, when highlighted

strokecolor = NULL — vector of colors of curves

strokecolorhilit = NULL — vector of colors of curves, when highlighted

strokewidth = 2 — line width of curves

strokewidthhilit = 2 — line widths of curves, when highlighted

curves_xlim = NULL — x-axis limits in curve plot

curves_ylim = NULL — y-axis limits in curve plot

curves_nxticks = 5 — no. ticks on x-axis in curve plot

curves_xticks = NULL — vector of tick positions on x-axis in curve plot

curves_nyticks = 5 — no. ticks on y-axis in curve plot

curves_yticks = NULL — vector of tick positions on y-axis in curve plot

curves_title = "" — title for curve plot

curves_xlab = "X" — x-axis label for curve plot

curves_ylab = "Y" — y-axis label for curve plot

scat1_xlim = NULL — x-axis limits in first scatterplot

scat1_ylim = NULL — y-axis limits in first scatterplot

scat1_xNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values for x variable in first scatterplot (handle=T/F, force=T/F, width, gap)

scat1_yNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values for x variable in first scatterplot (handle=T/F, force=T/F, width, gap)

scat1_nxticks = 5 — no. ticks on x-axis in first scatterplot

scat1_xticks = NULL — vector of tick positions on x-axis in first scatterplot

scat1_nyticks = 5 — no. ticks on y-axis in first scatterplot

scat1_yticks = NULL — vector of tick positions on y-axis in first scatterplot

scat1_title = "" — title for first scatterplot

scat1_xlab = "X" — x-axis label for first scatterplot

scat1_ylab = "Y" — y-axis label for first scatterplot

scat2_xlim = NULL — x-axis limits in second scatterplot

scat2_ylim = NULL — y-axis limits in second scatterplot

scat2_xNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values for x variable in second scatterplot (handle=T/F, force=T/F, width, gap)

scat2_yNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values for x variable in second scatterplot (handle=T/F, force=T/F, width, gap)

scat2_nxticks = 5 — no. ticks on x-axis in second scatterplot

scat2_xticks = NULL — vector of tick positions on x-axis in second scatterplot

scat2_nyticks = 5 — no. ticks on y-axis in second scatterplot

scat2_yticks = NULL — vector of tick positions on y-axis in second scatterplot

scat2_title = "" — title for second scatterplot

scat2_xlab = "X" — x-axis label for second scatterplot

scat2_ylab = "Y" — y-axis label for second scatterplot

iplotMap

width = 1000 — width of chart in pixels

height = 600 — height of chart in pixels

margin = list(left=60, top=40, right=100, bottom=40, inner=10) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

ylim = NULL — y-axis limits

nyticks = 5 — no. ticks on y-axis

yticks = NULL — vector of tick positions on y-axis

tickwidth = 10 — width of tick marks at markers, in pixels

rectcolor = "#E6E6E6" — color of background rectangle

linecolor = "slateblue" — color of lines

linecolorhilit = "Orchid" — color of lines, when highlighted

linewidth = 3 — width of lines

title = "" — title for chart

xlab = "Chromosome" — x-axis label

ylab = "Position (cM)" — y-axis label

iplotScanone (no effects)

height = 450 — height of image in pixels

width = 900 — width of image in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

ylim = NULL — y-axis limits

nyticks = 5 — number of ticks in y-axis

yticks = NULL — vector of tick positions for y-axis

chrGap = 8 — gap between chromosomes in pixels

darkrect = "#C8C8C8" — color of darker background rectangle

lightrect = "#E6E6E6" — color of lighter background rectangle

linecolor = "darkslateblue" — line color for LOD curves

linewidth = 2 — line width for LOD curves

pointcolor = "#E9CFEC" — color for points at markers

pointsize = 0 — size of points at markers (default = 0 corresponding to no visible points at markers)

pointstroke = "black" — color of outer circle for points at markers

title = "" — title of chart

xlab = "Chromosome" — x-axis label

ylab = "LOD score" — y-axis label

rotate_ylab = NULL — indicates whether to rotate the y-axis label 90 degrees

iplotScanone (pxgtype="ci")

height = 530 — height of image in pixels

width = 1200 — width of image in pixels

wleft = width*0.7 — width of left panel in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

lod_axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel) in LOD curve panel

lod_titlepos = 20 — position of title for LOD curve panel, in pixels

chrGap = 8 — gap between chromosomes

darkrect = "#C8C8C8" — color of darker background rectangle

lightrect = "#E6E6E6" — color of lighter background rectangle

lod_ylim = NULL — y-axis limits in LOD curve panel

lod_nyticks = 5 — number of ticks in y-axis in LOD curve panel

lod_yticks = NULL — vector of tick positions for y-axis in LOD curve panel

lod_linecolor = "darkslateblue" — line color for LOD curves

lod_linewidth = 2 — line width for LOD curves

lod_pointcolor = "#E9CFEC" — color for points at markers in LOD curve panel

lod_pointsize = 0 — size of points at markers (default = 0 corresponding to no visible points at markers)

lod_pointstroke = "black" — color of outer circle for points at markers in LOD curve panel

lod_title = "" — title of LOD curve panel

lod_xlab = "Chromosome" — x-axis label for LOD curve panel

lod_ylab = "LOD score" — y-axis label for LOD curve panel

lod_rotate_ylab = NULL — indicates whether to rotate the y-axis label 90 degrees, in LOD curve panel

eff_ylim = NULL — y-axis limits in effect plot panel

eff_nyticks = 5 — number of ticks in y-axis in effect plot panel

eff_yticks = NULL — vector of tick positions for y-axis in effect plot panel

eff_linecolor = "slateblue" — line color in effect plot panel

eff_linewidth = "3" — line width in effect plot panel

eff_xlab = "Genotype" — x-axis label in effect plot panel

eff_ylab = "Phenotype" — y-axis label in effect plot panel

eff_rotate_ylab = NULL — indicates whether to rotate the y-axis label 90 degrees, in effect plot panel

eff_segwidth = NULL — width of line segments in effect plot panel, in pixels

eff_axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel) in effect plot panel

eff_titlepos = 20 — position of title for effect plot panel, in pixels

iplotScanone (pxgtype="raw")

height = 450 — height of image in pixels

width = 1200 — width of image in pixels

wleft = width*0.7 — width of left panel in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

lod_axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel) in LOD curve panel

lod_titlepos = 20 — position of title for LOD curve panel, in pixels

chrGap = 8 — gap between chromosomes

darkrect = "#C8C8C8" — color of darker background rectangle

lightrect = "#E6E6E6" — color of lighter background rectangle

lod_ylim = NULL — y-axis limits in LOD curve panel

lod_nyticks = 5 — number of ticks in y-axis in LOD curve panel

lod_yticks = NULL — vector of tick positions for y-axis in LOD curve panel

lod_linecolor = "darkslateblue" — line color for LOD curves

lod_linewidth = 2 — line width for LOD curves

lod_pointcolor = "#E9CFEC" — color for points at markers in LOD curve panel

lod_pointsize = 0 — size of points at markers (default = 0 corresponding to no visible points at markers)

lod_pointstroke = "black" — color of outer circle for points at markers in LOD curve panel

lod_title = "" — title of LOD curve panel

lod_xlab = "Chromosome" — x-axis label for LOD curve panel

lod_ylab = "LOD score" — y-axis label for LOD curve panel

lod_rotate_ylab = NULL — indicates whether to rotate the y-axis label 90 degrees, in LOD curve panel

eff_pointcolor = "slateblue" — point color in phe-by-gen panel

eff_pointcolorhilit = "Orchid" — point color, when highlighted, in phe-by-gen panel

eff_pointstroke = "black" — color of outer circle for points, in phe-by-gen panel

eff_pointsize = 3 — point size in phe-by-gen paenl

eff_ylim = NULL — y-axis limits in phe-by-gen panel

eff_nyticks = 5 — number of ticks in y-axis in phe-by-gen panel

eff_yticks = NULL — vector of tick positions for y-axis in phe-by-gen panel

eff_xlab = "Genotype" — x-axis label in phe-by-gen panel

eff_ylab = "Phenotype" — y-axis label in phe-by-gen panel

eff_rotate_ylab = NULL — indicates whether to rotate the y-axis label 90 degrees, in phe-by-gen panel

xjitter = NULL — amount of horizontal jittering in phe-by-gen panel

eff_axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel) in LOD curve panel

eff_titlepos = 20 — position of title for phe-by-gen panel, in pixels

eff_yNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values in phe-by-gen panel (handle=T/F, force=T/F, width, gap)

iplotMScanone (no effects)

height = 700 — height of chart in pixels

width = 1000 — width of chart in pixels

wleft = width*0.65 — width of left panels in pixels

htop = height/2 — height of top panels in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

chrGap = 8 — gap between chromosomes in pixels

darkrect = "#C8C8C8" — color of darker background rectangle

lightrect = "#E6E6E6" — color of lighter background rectangle

nullcolor = "#E6E6E6" — color for pixels with null values

colors = c("slateblue", "white", "crimson") — heat map colors

zlim = NULL — z-axis limits

zthresh = NULL — lower z-axis threshold for display in heat map

lod_ylab = "" — y-axis label for LOD heatmap (also used as x-axis label on effect plot)

linecolor = "darkslateblue" — color of lines

linewidth = 2 — width of lines

pointcolor = "slateblue" — color of points in at markers in LOD curves

pointsize = 0 — size of points in LOD curves (default = 0 corresponding to no visible points at markers)

pointstroke = "black" — color of outer circle for points at markers

nxticks = 5 — no. ticks in x-axis on right-hand panel, if quantitative scale

xticks = NULL — tick positions in x-axis on right-hand panel, if quantitative scale

lod_labels = NULL — optional vector of strings, for LOD column labels

iplotMScanone (with effects)

height = 700 — height of chart in pixels

width = 1000 — width of chart in pixels

wleft = width*0.65 — width of left panels in pixels

htop = height/2 — height of top panels in pixels

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

chrGap = 8 — gap between chromosomes in pixels

darkrect = "#C8C8C8" — color of darker background rectangle

lightrect = "#E6E6E6" — color of lighter background rectangle

nullcolor = "#E6E6E6" — color for pixels with null values

colors = c("slateblue", "white", "crimson") — heat map colors

zlim = NULL — z-axis limits

zthresh = NULL — lower z-axis threshold for display in heat map

lod_ylab = "" — y-axis label for LOD heatmap (also used as x-axis label on effect plot)

eff_ylim = NULL — y-axis limits for effect plot (right panel)

eff_ylab = "" — y-axis label for effect plot (right panel)

linecolor = "darkslateblue" — line color for LOD curves (lower panel)

eff_linecolor = NULL — line color for effect plot (right panel)

linewidth = 2 — line width for LOD curves (lower panel)

eff_linewidth = 2 — width of line for effect plot (right panel)

pointcolor = "slateblue" — point color for LOD curves (lower panel)

pointsize = 0 — point size for LOD curves (lower panel); 0 means no points

pointstroke = "black" — stroke color for points in LOD curves (lower panel)

eff_pointcolor = NULL — point color for effect plot (right panel)

eff_pointsize = 0 — point size for effect plot (right panel); 0 means no points

eff_pointstroke = "black" — stroke color for points in effect plot (right panel)

nxticks = 5 — no. ticks in x-axis for effect plot (right panel), if quantitative scale

xticks = NULL — tick positions in x-axis for effect plot (right panel), if quantitative scale

lod_labels = NULL — optional vector of strings, for LOD column labels

iplotRF

height = 1000 — total height of chart in pixels

width = 1000 — total width of chart in pixels

pixelPerCell = NULL — pixels per cell in heat map

chrGap = 2 — gaps between chr in heat map

cellHeight = 30 — cell height (in pixels) in crosstab

cellWidth = 80 — cell width (in pixels) in crosstab

cellPad = 20 — cell padding (in pixels) to right of text in crosstab

hbot = 300 — height (in pixels) of each of the lower panels with LOD scores across the genome

fontsize = cellHeight*0.7 — font size in crosstab

margin = list(left=60, top=30, right=10, bottom=40, inner=5) — margins in each panel

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — axis positions in heatmap

lightrect = "#e6e6e6" — background color in heatmap and crosstab; light rect in lower panels with LOD and rf

darkrect = "#c8c8c8" — dark rectangle in lower panels with LOD and rf

hilitcolor = "#e9cfec" — highlight color in crosstab

nullcolor = "#e6e6e6" — color of null pixels in heat map

bordercolor = "black" — border color in heat map and in cross-tab

pointsize = 2 — point size in lower panels with LOD and rf

pointcolor = "slateblue" — point color in lower panels with LOD and rf

pointstroke = "black" — stroke color for points in lower panels with LOD and rf

colors = c("crimson", "white", "slateblue") — colors for heat map

lodlim = c(0, 12) — range of LOD values to display; omit below 1st, truncate about 2nd

oneAtTop = false — whether to put chr 1 at top of heatmap

iplotPXG

height = 450 — height of chart in pixels

width = 300 — width of chart in pixels

title = "" — title for chart

margin = list(left=60, top=40, right=40, bottom=40, inner=5) — margins in pixels (left, top, right, bottom, inner)

xlab = "Genotype" — x-axis label

ylab = "Phenotype" — y-axis label

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — position of axis labels in pixels (xtitle, ytitle, xlabel, ylabel)

titlepos = 20 — position of chart title in pixels

xjitter = NULL — amount of horizontal jittering in pixels

ylim = NULL — y-axis limits

yticks = NULL — vector of tick positions on y-axis

nyticks = 5 — no. ticks on y-axis

rectcolor = "#E6E6E6" — color of background rectangle

pointcolor = "slateblue" — color for points

pointsize = 3 — size of points in pixels

pointstroke = "black" — color of outer circle for points

yNA = list(handle=true, force=false, width=15, gap=10) — treatment of missing values (handle=T/F, force=T/F, width, gap)

iplotScantwo

height = 1000 — total height of chart in pixels

width = 1000 — total width of chart in pixels

pixelPerCell = NULL — pixels per cell in heat map

chrGap = 2 — gaps between chr in heat map

wright = 500 — width (in pixels) of right panels

hbot = 150 — height (in pixels) of each of the lower panels

margin = list(left=60, top=50, right=10, bottom=40, inner=5) — margins in each panel

axispos = list(xtitle=25, ytitle=30, xlabel=5, ylabel=5) — axis positions in heatmap

lightrect = "#e6e6e6" — color for light rect in lower panels and backgrd in right panels

darkrect = "#c8c8c8" — dark rectangle in lower panels

nullcolor = "#e6e6e6" — color of null pixels in heat map

bordercolor = "black" — border color in heat map

linecolor = "slateblue" — line color in lower panels

linewidth = 2 — line width in lower panels

pointsize = 3 — point size in right panels

pointstroke = "black" — color of outer circle in right panels

cicolors = NULL — colors for CIs in QTL effect plot; also used for points in phe x gen plot

color = "slateblue" — color for heat map

oneAtTop = false — whether to put chr 1 at top of heatmap

zthresh = 0 — LOD values below this threshold aren’t shown (on LOD_full scale)