addFacetPanel: Add facet-panel to single plotly plot.

Description Usage Arguments Details Value Author(s)

View source: R/plots-boxplotClinData.R

Description

Add facet-panel to single plotly plot.

Usage

1
2
3
4
5
6
7
addFacetPanel(
  pl,
  panelLab,
  panelWidth = 20,
  fontSize = 15,
  side = c("top", "right")
)

Arguments

pl

a plotly object to which to add a single facet panel

panelLab

text to be shown in the facet panel

panelWidth

thickness of the panel in pixels.

fontSize

fontsize of facetText

side

the side of the plot to show the panel (currently only right panels are implemented.)

Details

plot title clipping.

Incase case side = 'top', the plot title (eg. layout(title = "title")) will clip with the top pannel.

Resolve this with the following configutations: (once all the subplots have already been combined) layout( title = list(text = "title", yref = "container", y = 1)) # place the title at absolute top of the page margin = list(t = panelWidth + heightTitleTextInPixels) # If font size = 15 roughly equal to 20 pixels.

Value

plotly object with the facet panel added.

Author(s)

lennart tuijnder


clinDataReview documentation built on July 14, 2021, 5:08 p.m.