m_style_surface: Specify Styling for Surface

Description Usage Arguments Examples

View source: R/style.R

Description

Styling options for the surface representation. Used inside m_add_surface().

Usage

1
m_style_surface(opacity = 1, colorScheme = "default", color = NULL)

Arguments

opacity

Opacity, 0 for transparent, 1 for opaque.

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.

Examples

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

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