Package: smplot2 0.2.4

smplot2: Creating 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.4.tar.gz
smplot2_0.2.4.zip(r-4.5)smplot2_0.2.4.zip(r-4.4)smplot2_0.2.4.zip(r-4.3)
smplot2_0.2.4.tgz(r-4.4-any)smplot2_0.2.4.tgz(r-4.3-any)
smplot2_0.2.4.tar.gz(r-4.5-noble)smplot2_0.2.4.tar.gz(r-4.4-noble)
smplot2_0.2.4.tgz(r-4.4-emscripten)smplot2_0.2.4.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

41 exports 21 stars 2.45 score 102 dependencies 201 scripts 753 downloads

Last updated 3 months agofrom:ac4b6af9ce. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKAug 23 2024
R-4.5-winOKAug 23 2024
R-4.5-linuxOKAug 23 2024
R-4.4-winOKAug 23 2024
R-4.4-macOKAug 23 2024
R-4.3-winOKAug 23 2024
R-4.3-macOKAug 23 2024

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.tableDerivdigestdoBydplyrevaluatefansifarverfastmapfontawesomeforeignFormulafsgenericsggplot2ggpubrggrepelggsciggsignifgluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonliteknitrlabelinglatticelifecyclelme4magrittrMASSMatrixMatrixModelsmemoisemgcvmicrobenchmarkmimeminqamodelrmunsellnlmenloptrnnetnumDerivpatchworkpbkrtestpillarpkgconfigpolynompurrrpwrquantregR6rappdirsRColorBrewerRcppRcppEigenrlangrmarkdownrpartrstatixrstudioapisassscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttinytexutf8vctrsviridisviridisLitewithrxfunyamlzoo

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
A bar plot with jittered individual pointssm_bar
A Bland Altman plotsm_bland_altman
A boxplot with jittered individual pointssm_boxplot
Confidence intervalsm_ci
A SM 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
Minimalistic theme of horizontal major gridssm_hgrid
Histogram with kernel density estimation (Gaussian) and rugssm_hist
Minimalistic theme with major horizontal and vertical gridssm_hvgrid
A theme with horizontal and vertical major and minor gridssm_hvgrid_minor
SM minimal theme (no grid) with borders.sm_minimal
SM 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
Combining figures togethersm_put_together
Raincloud plotsm_raincloud
A slope chartsm_slope
Calculating the slope across multiple conditions and subjectssm_slope_all
A slope chart (with mean) of one 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
A violin plot with jittered individual pointssm_violin