parse_title: Parse title length

Description Usage Arguments Details Value

View source: R/stackedViolin.R

Description

Helper function to reproduce scanpy stacked violin plot with Seurat.

Usage

1
parse_title(wrap_title, break_length = 23)

Arguments

wrap_title

Title to be plotted.

break_length

Length of break point: where to insert line break?

Details

Credit to: Tang Ming https://divingintogeneticsandgenomics.rbind.io/post/stacked-violin-plot-for-visualizing-single-cell-data-in-seurat/

Value

String of title with appropriate breaks


RuiyuRayWang/scWidgets documentation built on Dec. 18, 2021, 11:54 a.m.