Learn R Programming

NGLVieweR (version 1.4.0)

setScale: Set Scale

Description

Set the scale factor for the representation

Usage

setScale(NGLVieweR, scale = 1)

Value

Updated NGLVieweR object with new scale parameter.

Arguments

NGLVieweR

A NGLVieweR object.

scale

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

See Also

  • zoomMove()

  • setRotation()

  • setPosition()

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

Examples

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

Run the code above in your browser using DataLab