setScale: Set Scale

View source: R/NGLVieweR.R

setScaleR Documentation

Set Scale

Description

Set the scale factor for the representation

Usage

setScale(NGLVieweR, scale = 1)

Arguments

NGLVieweR

A NGLVieweR object.

scale

A numeric value indicating the scale factor (default is 1).

Value

Updated NGLVieweR object with new scale parameter.

See Also

  • zoomMove()

  • setRotation()

  • setPosition()

Other transformations: setPosition(), setRotation(), zoomMove()

Examples

NGLVieweR("7CID") %>%
addRepresentation("cartoon", 
param=list(name="cartoon", colorValue="blue")) %>%
setScale(2)

NGLVieweR documentation built on April 4, 2025, 4:33 a.m.