Description Usage Arguments Value Examples
This function generates the hydrophobicity landscape by computed logP values. The plots are faceted based on the protein chains You can specify a formula to smoothen out the landscape, although the default is specified as a 20 order polynomial. You also have the option to specify more options passed on to the facet wrap function in ggplot2
1 | polar_landscape(mypdb, formulae = y ~ stats::poly(x, 20), ...)
|
mypdb |
This is an object given processed by pdb_dataframe() and parameters given by assign_params(). If one wants to use a different set of logP values they could alter the assign_params() function or they could add it manually as long as the column is named logP. Additionally one can add their own acidity categories as long as the column name is still "Acidity" |
formulae |
This is any formula accepted by the geom_smooth() function, defaultd as a 20 order polynomial There is some unexpected activity when tring to throw it diverse functions, works best with a polynomial function and just changing the order like so y~poly(x, degree) |
... |
This passes parameters to a facet_wrap() call from ggplot |
This function returns a ggplot2 object with logP vs atomic coordinate plotted
1 2 3 4 5 6 7 8 | library(Rpdb)
library(tidyverse)
library(dplyr)
library(ggplot2)
y <- pdb_dataframe(CYP)
z <- assign_params(y)
polar_landscape(z)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.