View source: R/g3LollipopOptions.R
g3Lollipop.options | R Documentation |
G3Lollipop plot options
g3Lollipop.options(
chart.width = 800,
chart.type = "circle",
chart.margin = list(left = 40, right = 20, top = 15, bottom = 25),
chart.background = "transparent",
transition.time = 600,
y.axis.label = "# of mutations",
axis.label.font = "normal 12px Arial",
axis.label.color = "#4f4f4f",
axis.label.alignment = "middle",
axis.label.dy = "-2em",
y.axis.line.color = "#c4c8ca",
y.axis.line.style = "dash",
y.axis.line.width = 1,
y.max.range.ratio = 1.1,
legend.margin = list(left = 10, right = 0, top = 5, bottom = 5),
legend.interactive = TRUE,
legend.title = NA,
lollipop.track.height = 420,
lollipop.track.background = "rgb(233,233,233)",
lollipop.pop.min.size = 2,
lollipop.pop.max.size = 12,
lollipop.pop.info.limit = 8,
lollipop.pop.info.color = "#EEE",
lollipop.pop.info.dy = "0.35em",
lollipop.line.color = "rgb(42,42,42)",
lollipop.line.width = 0.5,
lollipop.circle.color = "wheat",
lollipop.circle.width = 0.5,
lollipop.label.ratio = 1.4,
lollipop.label.min.font.size = 10,
lollipop.color.scheme = "accent",
highlight.text.angle = "90",
title.text = "",
title.font = "normal 16px Arial",
title.color = "#424242",
title.alignment = "middle",
title.dy = "0.35em",
anno.height = 30,
anno.margin = list(top = 4, bottom = 0),
anno.background = "transparent",
anno.bar.fill = "#e5e3e1",
anno.bar.margin = list(top = 2, bottom = 2),
domain.color.scheme = "category10",
domain.margin = list(top = 0, bottom = 0),
domain.text.font = "normal 11px Arial",
domain.text.color = "#f2f2f2",
brush = TRUE,
brush.selection.background = "#666",
brush.selection.opacity = 0.2,
brush.border.color = "#969696",
brush.handler.color = "#333",
brush.border.width = 1,
legend = TRUE,
tooltip = TRUE,
zoom = TRUE
)
chart.width |
chart width. Default 800. |
chart.type |
pie or circle. Default circle. |
chart.margin |
specify chart margin in _list_ format. |
chart.background |
chart background. Default transparent. |
transition.time |
animation transition time when clicking lollipop pops to show labels (in millisecond). Default 600. |
y.axis.label |
Y-axis label text. Default "# of mutations". |
axis.label.font |
css font style shorthand (font-style font-variant font-weight font-size/line-height font-family). Default "normal 12px Arial". |
axis.label.color |
axis label text color. Default #4f4f4f. |
axis.label.alignment |
axis label text alignment (start/end/middle). Default middle. |
axis.label.dy |
text adjustment of axis label text. Default -2em. |
y.axis.line.color |
color of y-axis in-chart lines (ticks). Default #c4c8ca. |
y.axis.line.style |
style of y-axis in-chart lines (ticks), "dash" or "line". Default dash. |
y.axis.line.width |
width of y-axis in-chart lines (ticks). Default 1. |
y.max.range.ratio |
ratio of y-axis range to data value range. Default 1.1. |
legend.margin |
legend margin in list. Default |
legend.interactive |
legend interactive mode. Default |
legend.title |
legend title. If |
lollipop.track.height |
height of lollipop track. Default 420. |
lollipop.track.background |
background of lollipop track. Default rgb(244,244,244) |
lollipop.pop.min.size |
lollipop pop minimal size. Default 2. |
lollipop.pop.max.size |
lollipop pop maximal size. Default 12. |
lollipop.pop.info.limit |
threshold of lollipop pop size to show count information in middle of pop. Default 8. |
lollipop.pop.info.color |
lollipop pop information text color. Default #EEE. |
lollipop.pop.info.dy |
y-axis direction text adjustment of lollipop pop information. Default -0.35em. |
lollipop.line.color |
lollipop line color. Default rgb(42,42,42). |
lollipop.line.width |
lollipop line width. Default 0.5. |
lollipop.circle.color |
lollipop circle border color. Default wheat. |
lollipop.circle.width |
lollipop circle border width. Default 0.5. |
lollipop.label.ratio |
lollipop click-out label font size to circle size ratio. Default 1.4. |
lollipop.label.min.font.size |
lollipop click-out label minimal font size. Default 10. |
lollipop.color.scheme |
color scheme to fill lollipop pops. Default accent. |
highlight.text.angle |
pop-on-click highlight text angle. Default 90. |
title.text |
title of chart. Default is empty. |
title.font |
font of chart title. Default normal 16px Arial. |
title.color |
color of chart title. Default #424242. |
title.alignment |
text alignment of chart title (start/middle/end). Default middle. |
title.dy |
text adjustment of chart title. Default 0.35em. |
anno.height |
height of protein structure annotation track. Default 30. |
anno.margin |
margin of protein structure annotation track. Default |
anno.background |
background of protein structure annotation track. Default transparent. |
anno.bar.fill |
background of protein bar in protein structure annotation track. Default #e5e3e1. |
anno.bar.margin |
margin of protein bar in protein structure annotation track. Default |
domain.color.scheme |
color scheme of protein domains. Default category10. |
domain.margin |
margin of protein domains. Default |
domain.text.font |
domain label text font in shorthand format. Default normal 11px Arial. |
domain.text.color |
domain label text color. Default #f2f2f2. |
brush |
if show brush. Default |
brush.selection.background |
background color of selection brush. Default #666. |
brush.selection.opacity |
background opacity of selection brush. Default 0.2. |
brush.border.color |
border color of selection brush. Default #969696. |
brush.handler.color |
color of left and right handlers of selection brush. Default #333. |
brush.border.width |
border width of selection brush. Default 1. |
legend |
if show legend. Default |
tooltip |
if show tooltip. Default |
zoom |
if enable zoom feature. Default |
a list with g3Lollipop plot options
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.