m_style_stick: Specify Styling for Stick

Description Usage Arguments Examples

View source: R/style.R

Description

Styling options for the stick representation. Used inside m_add_style() and m_set_style().

Usage

1
2
3
4
5
6
7
8
m_style_stick(
  radius = 0.3,
  singleBonds = FALSE,
  colorScheme = "default",
  color = NULL,
  opacity = 1,
  hidden = FALSE
)

Arguments

radius

Radius of sticks.

singleBonds

Draw all bonds as single bonds if TRUE.

colorScheme

Specify scheme to color the atoms by. Default is "default". Other choies are "Carbon", ssPyMOL", "ssJmol", "Jmol", "default", "amino", "shapely", "nucleic", "chain", "chainHetatm", "prop".

color

Fixed coloring, overrides colorScheme.

opacity

Opacity, must be the same for all atoms in the model.

hidden

Do not show.

Examples

1
2
3
4
r3dmol() %>%
  m_add_model(data = pdb_1j72, format = "pdb") %>%
  m_set_style(style = m_style_stick(opacity = 0.4)) %>%
  m_zoom_to()

r3dmol documentation built on March 14, 2021, 5:08 p.m.