plot_biofabric: plot_biofabric

View source: R/utils.R

plot_biofabricR Documentation

plot_biofabric

Description

Plot the network in biofabric layout.

Usage

plot_biofabric(
  res,
  sort.by = node_rank_fabric(),
  size = "rank",
  end_shape = "circle",
  color_map = NULL,
  highlight = NULL,
  highlight_color = "tomato",
  textScaleRange = c(1.5, 2)
)

Arguments

res

biotext object

sort.by

passed to fabric layout

size

mapping to use for size of text on x-axis default to "rank", which uses default ordering, other accepted options are those in the node table of tbl_graph object

end_shape

end shape on 'geom_edge_span'

color_map

passed to aes mapping in geom_node_range. Override 'highlight' option.

highlight

which category to highlight, default to NULL

highlight_color

highlight color of the category

textScaleRange

decide text scale range on x-axis

Details

Plot the network in biofabric layout. Internally, obtainTextPosition() is used and the layers are stacked. For BioFabric layout, please refer to: https://biofabric.systemsbiology.net/ Citation is: https://doi.org/10.1186/1471-2105-13-275

Value

ggplot2

Examples


testgenes <- c("IRF3","PNKP","DDX41","ERCC1","ERCC2","XRCC1")
refseq(testgenes) |> plot_biofabric()



noriakis/wcGeneSummary documentation built on April 22, 2024, 7:12 a.m.