Package: smplot2 0.2.5

smplot2: Create Standalone and Composite Plots in 'ggplot2' for Publications

Provides functions for creating and annotating a composite plot in 'ggplot2'. Offers background themes and shortcut plotting functions that produce figures that are appropriate for the format of scientific journals. Some methods are described in Min and Zhou (2021) <doi:10.3389/fgene.2021.802894>.

Authors:Seung Hyun Min [aut, cre]

smplot2_0.2.5.tar.gz
smplot2_0.2.5.zip(r-4.5)smplot2_0.2.5.zip(r-4.4)smplot2_0.2.5.zip(r-4.3)
smplot2_0.2.5.tgz(r-4.4-any)smplot2_0.2.5.tgz(r-4.3-any)
smplot2_0.2.5.tar.gz(r-4.5-noble)smplot2_0.2.5.tar.gz(r-4.4-noble)
smplot2_0.2.5.tgz(r-4.4-emscripten)smplot2_0.2.5.tgz(r-4.3-emscripten)
smplot2.pdf |smplot2.html
smplot2/json (API)
NEWS

# Install 'smplot2' in R:
install.packages('smplot2', repos = c('https://smin95.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/smin95/smplot2/issues

On CRAN:

easy-to-useggplot2scientific-visualizationvisualization

7.00 score 23 stars 1 packages 288 scripts 613 downloads 41 exports 105 dependencies

Last updated 7 hours agofrom:f3300332a1. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 20 2025
R-4.5-winOKJan 20 2025
R-4.5-linuxOKJan 20 2025
R-4.4-winOKJan 20 2025
R-4.4-macOKJan 20 2025
R-4.3-winOKJan 20 2025
R-4.3-macOKJan 20 2025

Exports:sm_add_legendsm_add_pointsm_add_textsm_aucsm_auc_allsm_barsm_bland_altmansm_boxplotsm_cism_classicsm_colorsm_common_axissm_common_legendsm_common_titlesm_common_xlabelsm_common_ylabelsm_corr_avgErrsm_effsizesm_forestsm_forest_annotsm_hgridsm_histsm_hvgridsm_hvgrid_minorsm_minimalsm_palettesm_panel_labelsm_plot_cleansm_pointplotsm_powersm_put_togethersm_raincloudsm_slopesm_slope_allsm_slope_meansm_slope_themesm_statBlandAltsm_statCorrsm_stdErrsm_vgridsm_violin

Dependencies:abindbackportsbase64encbootbroombslibcachemcarcarDatacheckmatecliclustercolorspacecorrplotcowplotcpp11data.tableDerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpatchworkpbkrtestpillarpkgconfigpolynompurrrpwrquantregR6rappdirsrbibutilsRColorBrewerRcppRcppEigenRdpackreformulasrlangrmarkdownrpartrstatixrstudioapisassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

Readme and manuals

Help Manual

Help pageTopics
Adding a common legend on a combined figuresm_add_legend
Add a point annotation onto the combined plotsm_add_point
Add a text annotation onto the combined plotsm_add_text
Calculation of the Area under a Curve (Trapezoidal numerical integration)sm_auc
Calculating Area under Curve across multiple conditions and subjectssm_auc_all
Bar Plot with Jittered Individual Pointssm_bar
A Bland Altman plotsm_bland_altman
A Boxplot with Jittered Individual Pointssm_boxplot
Confidence intervalsm_ci
A classical theme.sm_classic
SM custom palette of colorssm_color
A function to plot panels with common x- and y- axessm_common_axis
Creating a common legend for subplots on a separate panelsm_common_legend
Common title for combined subplotssm_common_title
Common x-axis label (title) for combined subplotssm_common_xlabel
Common y-axis label (title) for combined subplotssm_common_ylabel
Superimposition of the average point with horizontal and vertical error bars in the correlation plotsm_corr_avgErr
Cohen's d - effect sizesm_effsize
Forest plotsm_forest
Annotation of the error range on the forest plotsm_forest_annot
A minimalistic theme of horizontal major gridssm_hgrid
Histogram with kernel density estimation (Gaussian) and rugssm_hist
A minimalistic theme with major horizontal and vertical gridssm_hvgrid
A theme with horizontal and vertical major and minor gridssm_hvgrid_minor
A minimal theme (no grid) with borders.sm_minimal
A custom palette of colorssm_palette
Writing a label for each panel of a combined figuresm_panel_label
Remove xticklabels and yticklabels in selected panels for proper subplottingsm_plot_clean
Point plot with optional shadowsm_pointplot
Post-hoc power analysis using two-sample or paired t-testsm_power
Combine Multiple Plots into a Single Composite Figuresm_put_together
Raincloud Plotsm_raincloud
Slope Chartsm_slope
Calculating the slope across multiple conditions and subjectssm_slope_all
Slope Chart with Mean for a Single Groupsm_slope_mean
SM plot with a theme appropriate for the slope chartsm_slope_theme
Statistics for a Bland-Altman plotsm_statBlandAlt
Linear regression slope and statistical values (R or R2 and p values) from a paired correlation test.sm_statCorr
Standard errorsm_stdErr
Minimalistic theme with vertical major gridssm_vgrid
Violin Plot with Jittered Individual Pointssm_violin