Learn R Programming

vanddraabe (version 1.1.1)

MobilityBarplot.summ: Mobility Summary Barplots

Description

Mobility summary barplots for PDB structures. The plots are faceted and displays the binned B-value values for all the structures. The counts are presented on a log10 scale. The function will automatically plot ten plots per page.

Usage

MobilityBarplot.summ(data)

Arguments

data

The results from the CleanProteinStructures() function. Will use the binned mobility data.

See Also

Other plots: BoundWaterEnvPlots, BoundWaterEnvSummaryPlot, BvalueBarplot.summ, BvalueBarplot, ClusterSummaryPlots, MobNormBvalEvalPlots, MobilityBarplot, OccupancyBarplot.summ, OccupancyBarplot, nBvalueBarplot, normBvalueBarplot.summ

Examples

Run this code
# NOT RUN {
  
# }
# NOT RUN {
  MobilityBarplot.summ(data)

  ##----- multiple pages
  library(ggforce)
  mob.barplots.summary <- MobilityBarplot.summ(data)
  num.pages <- ceiling(nrow(data$mobility.counts) / 10)

  pdf(file="multiple_pages.pdf", height=11, width=8.5)
  for (page in seq_len(num.pages)) {
    print(mob.barplots.summary +
          ggforce::facet_wrap_paginate(~PDBid,
                                       ncol = 2, nrow = 5, page = page) )
  }
  dev.off()
  
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab