pageGuideShow: Reshow guides drawn with 'pageCreate', 'pageGuideHorizontal',...

View source: R/pageGuideShow.R

pageGuideShowR Documentation

Reshow guides drawn with pageCreate, pageGuideHorizontal, and pageGuideVertical

Description

Reshow guides drawn with pageCreate, pageGuideHorizontal, and pageGuideVertical

Usage

pageGuideShow()

Value

None.

See Also

pageCreate, pageGuideHorizontal, pageGuideVertical

Examples

## Load Hi-C data
library(plotgardenerData)
data("IMR90_HiC_10kb")

## Create a page
pageCreate(width = 3, height = 3, default.units = "inches")

## Add a page guide
pageGuideHorizontal(y = 0.5, default.units = "inches")

## Plot and place Hi-C plot
hicPlot <- plotHicSquare(
    data = IMR90_HiC_10kb, resolution = 10000,
    zrange = c(0, 70),
    chrom = "chr21",
    chromstart = 28000000, chromend = 30300000,
    x = 0.5, y = 0.5, width = 2, height = 2,
    just = c("left", "top"),
    default.units = "inches"
)

## Hide page guides
pageGuideHide()

## Re-show page guides
pageGuideShow()

## Annotate genome label
annoGenomeLabel(
    plot = hicPlot, scale = "Mb", axis = "x",
    x = 0.5, y = 2.53, just = c("left", "top")
)

PhanstielLab/BentoBox documentation built on June 30, 2024, 12:50 p.m.