Skip to content

Commit

Permalink
Merge pull request #239 from IndrajeetPatil/cran_submission_11
Browse files Browse the repository at this point in the history
cran submission 0.0.11
  • Loading branch information
IndrajeetPatil authored Jun 14, 2019
2 parents c4ad596 + 1c4a890 commit 3b0c78a
Show file tree
Hide file tree
Showing 83 changed files with 595 additions and 374 deletions.
2 changes: 1 addition & 1 deletion CONDUCT.md → CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be repor
opening an issue or contacting one or more of the project maintainers.

This Code of Conduct is adapted from the Contributor Covenant
(http:contributor-covenant.org), version 1.0.0, available at
(http://contributor-covenant.org), version 1.0.0, available at
http://contributor-covenant.org/version/1/0/0/
4 changes: 2 additions & 2 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2019-03-17.
Once it is accepted, delete this file and tag the release (commit 972e711c4b).
This package was submitted to CRAN on 2019-06-14.
Once it is accepted, delete this file and tag the release (commit c4ad59643b).
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ importFrom(stats,na.omit)
importFrom(stats,oneway.test)
importFrom(stats,p.adjust)
importFrom(stats,pairwise.t.test)
importFrom(stats,pchisq)
importFrom(stats,pt)
importFrom(stats,ptukey)
importFrom(stats,qnorm)
Expand Down
2 changes: 1 addition & 1 deletion R/ggbarstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#' labels.legend = c("0 = V-shaped", "1 = straight"),
#' legend.title = "Engine"
#' )
#' \dontrun{
#' \donttest{
#' # simple function call with the defaults (with count data)
#' library(jmv)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/ggbetweenstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
#' title = "Fuel efficiency by type of car transmission",
#' caption = "Transmission (0 = automatic, 1 = manual)"
#' )
#' \dontrun{
#' \donttest{
#' # more detailed function call
#' ggstatsplot::ggbetweenstats(
#' data = datasets::morley,
Expand Down
2 changes: 1 addition & 1 deletion R/ggcoefstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@
#' ggstatsplot::ggcoefstats(x = mod, output = "augment")
#'
#' # -------------- with custom dataframe -----------------------------------
#' \dontrun{
#' \donttest{
#' # creating a dataframe
#' df <-
#' structure(
Expand Down
2 changes: 1 addition & 1 deletion R/grouped_ggbarstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#'
#' @examples
#'
#' \dontrun{
#' \donttest{
#' # with condition and with count data
#' library(jmv)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/grouped_ggbetweenstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#' grouping.var = drv,
#' conf.level = 0.99
#' )
#' \dontrun{
#' \donttest{
#' # modifying individual plots using `ggplot.component` argument
#' ggstatsplot::grouped_ggbetweenstats(
#' data = dplyr::filter(
Expand Down
2 changes: 1 addition & 1 deletion R/grouped_ggpiestats.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#' )
#'
#' # the following will take slightly more amount of time
#' \dontrun{
#' \donttest{
#' # for reproducibility
#' set.seed(123)
#'
Expand Down
2 changes: 1 addition & 1 deletion R/grouped_ggscatterstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#'
#' @examples
#'
#' \dontrun{
#' \donttest{
#' # to ensure reproducibility
#' set.seed(123)
#'
Expand Down
12 changes: 8 additions & 4 deletions R/helpers_effsize_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
#' @importFrom stats na.omit
#'
#' @examples
#' \dontrun{
#'
#' \donttest{
#' set.seed(123)
#' ggstatsplot:::t1way_ci(
#' data = dplyr::filter(ggplot2::msleep, vore != "insecti"),
Expand Down Expand Up @@ -180,7 +181,8 @@ t1way_ci <- function(data,
#' @importFrom stats na.omit
#'
#' @examples
#' \dontrun{
#'
#' \donttest{
#' ggstatsplot:::yuend_ci(
#' data = dplyr::filter(
#' .data = ggstatsplot::iris_long,
Expand Down Expand Up @@ -346,7 +348,8 @@ yuend_ci <- function(data,
#' @importFrom stats na.omit
#'
#' @examples
#' \dontrun{
#'
#' \donttest{
#' ggstatsplot:::robcor_ci(
#' data = mtcars,
#' x = "hp",
Expand Down Expand Up @@ -486,7 +489,8 @@ robcor_ci <- function(data,
#' @importFrom stats na.omit
#'
#' @examples
#' \dontrun{
#'
#' \donttest{
#' ggstatsplot:::kw_eta_h_ci(
#' data = ggplot2::msleep,
#' x = vore,
Expand Down
4 changes: 2 additions & 2 deletions R/helpers_ggbetween_anova_subtitles.R
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ subtitle_anova_nonparametric <- function(data,
#'
#' @examples
#'
#' \dontrun{
#' \donttest{
#' # for reproducibility
#' set.seed(123)
#'
Expand Down Expand Up @@ -664,7 +664,7 @@ subtitle_anova_robust <- function(data,
#' @importFrom sjstats eta_sq omega_sq
#'
#' @examples
#' \dontrun{
#' \donttest{
#' set.seed(123)
#'
#' # between-subjects ---------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions R/helpers_ggbetween_t_subtitles.R
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ subtitle_t_parametric <- function(data,
#' below.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' set.seed(123)
#'
#' # -------------- between-subjects design ------------------------
Expand Down Expand Up @@ -693,7 +693,7 @@ subtitle_t_bayes <- function(data,
#' }
#'
#' @examples
#' \dontrun{
#' \donttest{
#' #---------------- two-sample test ------------------------------------
#'
#' # creating a smaller dataset
Expand Down
4 changes: 0 additions & 4 deletions R/helpers_ggcatstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,8 @@
#'
#' @importFrom dplyr mutate
#' @importFrom rlang !! :=
#' @importFrom stats pchisq
#'
#' @examples
#' \dontrun{
#'
#' # dataframe with label column
#' ggstatsplot:::cat_label_df(
Expand All @@ -32,8 +30,6 @@
#' label.content = "both",
#' perc.k = 1
#' )
#' }
#'
#' @keywords internal

# function body
Expand Down
4 changes: 2 additions & 2 deletions R/helpers_ggcoefstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @inheritParams tfz_labeller
#'
#' @examples
#' \dontrun{
#' \donttest{
#' # show all columns in output tibble
#' options(tibble.width = Inf)
#'
Expand Down Expand Up @@ -753,7 +753,7 @@ subtitle_meta_ggcoefstats <- function(data,
#'
#' @examples
#'
#' \dontrun{
#' \donttest{
#' # setup
#' set.seed(123)
#' library(metaBMA)
Expand Down
2 changes: 1 addition & 1 deletion R/helpers_ggcorrmat.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#' @importFrom stats median
#'
#' @examples
#' \dontrun{
#' \donttest{
#' ggstatsplot:::numdf_summary(ggplot2::msleep)
#' }
#'
Expand Down
2 changes: 1 addition & 1 deletion R/helpers_gghistostats.R
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ line_labeller <- function(plot,
#' for centrality parameter label. (Default: `2`).
#'
#' @examples
#' \dontrun{
#' \donttest{
#' library(ggplot2)
#'
#' # creating a ploton which lines and labels are to be superposed
Expand Down
5 changes: 1 addition & 4 deletions R/helpers_messages.R
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,11 @@ grouped_message <- function() {
#' @family helper_messages
#'
#' @examples
#' \dontrun{
#' ggstatsplot:::palette_message(
#' package = "RColorBrewer",
#' palette = "Dark2",
#' min_length = 20
#' )
#' }
#'
#' @keywords internal

# function body
Expand Down Expand Up @@ -295,7 +292,7 @@ effsize_ci_message <- function(nboot = 100, conf.level = 0.95) {
#' contingency table analyses.
#'
#' @examples
#' \dontrun{
#' \donttest{
#' ggstatsplot:::proptest_message(main = "am", condition = "cyl")
#' }
#'
Expand Down
2 changes: 1 addition & 1 deletion R/helpers_pairwise_comparison.R
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ games_howell <- function(data,
#' @examples
#'
#' # time consuming, so not run on `CRAN` machines
#' \dontrun{
#' \donttest{
#' # show all columns in a tibble
#' options(tibble.width = Inf)
#'
Expand Down
3 changes: 0 additions & 3 deletions R/kendall_w_ci.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,10 @@
#' @param ... Additional arguments (currently ignored).
#'
#' @examples
#' \dontrun{
#' set.seed(123)
#' library(jmv)
#' data("bugs", package = "jmv")
#' ggstatsplot:::kendall_w_ci(dplyr::select(bugs, LDLF:HDHF))
#' }
#'
#' @keywords internal

kendall_w_ci <- function(data,
Expand Down
11 changes: 5 additions & 6 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ knitr::opts_chunk$set(
)
```

# ggstatsplot: `ggplot2` Based Plots with Statistical Details
# `ggstatsplot`: `ggplot2` Based Plots with Statistical Details

Package | Status | Usage | GitHub | References
----------------- | ----------------- | ----------------- | ----------------- | -----------------
[![CRAN_Release_Badge](http://www.r-pkg.org/badges/version-ago/ggstatsplot)](https://CRAN.R-project.org/package=ggstatsplot) | [![Travis Build Status](https://travis-ci.org/IndrajeetPatil/ggstatsplot.svg?branch=master)](https://travis-ci.org/IndrajeetPatil/ggstatsplot) | [![Daily downloads badge](https://cranlogs.r-pkg.org/badges/last-day/ggstatsplot?color=blue)](https://CRAN.R-project.org/package=ggstatsplot) | [![GitHub version](https://img.shields.io/badge/GitHub-0.0.11.9000-orange.svg?style=flat-square)](https://github.com/IndrajeetPatil/ggstatsplot/) | [![Website](https://img.shields.io/badge/website-ggstatsplot-orange.svg?colorB=E91E63)](https://indrajeetpatil.github.io/ggstatsplot/)
[![CRAN Checks](https://cranchecks.info/badges/summary/ggstatsplot)](https://cran.r-project.org/web/checks/check_results_ggstatsplot.html) | [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/IndrajeetPatil/ggstatsplot?branch=master&svg=true)](https://ci.appveyor.com/project/IndrajeetPatil/ggstatsplot) | [![Weekly downloads badge](https://cranlogs.r-pkg.org/badges/last-week/ggstatsplot?color=blue)](https://CRAN.R-project.org/package=ggstatsplot) | [![Forks](https://img.shields.io/badge/forks-`r itdepends:::get_github_info("ggstatsplot")$forks[[1]]`-blue.svg)](https://github.com/IndrajeetPatil/ggstatsplot/) | [![Rdoc](https://www.rdocumentation.org/badges/version/ggstatsplot)](https://www.rdocumentation.org/packages/ggstatsplot)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/ggstatsplot?color=blue)](https://CRAN.R-project.org/package=ggstatsplot) | [![Github Issues](https://img.shields.io/badge/issues-`r itdepends:::get_github_info("ggstatsplot")$open_issues[[1]]`-red.svg)](https://github.com/IndrajeetPatil/ggstatsplot/issues) | [![vignettes](https://img.shields.io/badge/vignettes-0.0.11-orange.svg?colorB=FF5722)](https://cran.r-project.org/web/packages/ggstatsplot/vignettes/)
[![minimal R version](https://img.shields.io/badge/R%3E%3D-3.5.0-6666ff.svg)](https://cran.r-project.org/) | [![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/) | [![Monthly downloads badge](https://cranlogs.r-pkg.org/badges/last-month/ggstatsplot?color=blue)](https://CRAN.R-project.org/package=ggstatsplot) | [![Github Issues](https://img.shields.io/badge/issues-`r itdepends:::get_github_info("ggstatsplot")$open_issues[[1]]`-red.svg)](https://github.com/IndrajeetPatil/ggstatsplot/issues) | [![vignettes](https://img.shields.io/badge/vignettes-0.0.11-orange.svg?colorB=FF5722)](https://CRAN.R-project.org/package=ggstatsplot/vignettes/)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/IndrajeetPatil/ggstatsplot.svg)](https://github.com/IndrajeetPatil/ggstatsplot) | [![Coverage Status](https://coveralls.io/repos/github/IndrajeetPatil/ggstatsplot/badge.svg?branch=master)](https://coveralls.io/github/IndrajeetPatil/ggstatsplot?branch=master) | [![Total downloads badge](https://cranlogs.r-pkg.org/badges/grand-total/ggstatsplot?color=blue)](https://CRAN.R-project.org/package=ggstatsplot) | [![Github Stars](https://img.shields.io/github/stars/IndrajeetPatil/ggstatsplot.svg?style=social&label=Github)](https://github.com/IndrajeetPatil/ggstatsplot) | [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2074621.svg)](https://doi.org/10.5281/zenodo.2074621)
[![Licence](https://img.shields.io/badge/licence-GPL--3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0.en.html) | [![Codecov test coverage](https://codecov.io/gh/IndrajeetPatil/ggstatsplot/branch/master/graph/badge.svg)](https://codecov.io/gh/IndrajeetPatil/ggstatsplot?branch=master) | [![HitCount](http://hits.dwyl.io/IndrajeetPatil/ggstatsplot.svg)](http://hits.dwyl.io/IndrajeetPatil/ggstatsplot) | [![Last-changedate](https://img.shields.io/badge/last%20change-`r gsub('-', '--', Sys.Date())`-yellowgreen.svg)](https://github.com/IndrajeetPatil/ggstatsplot/commits/master) | [![GitHub last commit](https://img.shields.io/github/last-commit/IndrajeetPatil/ggstatsplot.svg)](https://github.com/IndrajeetPatil/ggstatsplot/commits/master)
[![status](https://tinyverse.netlify.com/badge/ggstatsplot)](https://CRAN.R-project.org/package=ggstatsplot) | [![Covrpage Summary](https://img.shields.io/badge/covrpage-Last_Build_2019_05_25-yellowgreen.svg)](https://github.com/IndrajeetPatil/ggstatsplot/blob/master/tests/README.md) | [![saythanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/IndrajeetPatil) | [![Project Status](http://www.repostatus.org/badges/latest/active.svg)](http://www.repostatus.org/#active) | [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/IndrajeetPatil/ggstatsplot/issues)
Expand Down Expand Up @@ -230,11 +230,10 @@ Here are examples of the main functions currently supported in `ggstatsplot`.
**Note**: If you are reading this on GitHub repository, the documentation below
is for the **development** version of the package. So you may see some features
available here that are not currently present in the stable version of this
package on **CRAN**. For documentation relevant for the CRAN version, see:
package on **CRAN**. For documentation relevant for the `CRAN` version, see:

- vignettes: <https://cran.r-project.org/web/packages/ggstatsplot/vignettes/>
- README:
<https://cran.r-project.org/web/packages/ggstatsplot/readme/README.html>
- vignettes: <https://CRAN.R-project.org/package=ggstatsplot/vignettes/>
- README: <https://CRAN.R-project.org/package=ggstatsplot/readme/README.html>

## `ggbetweenstats`

Expand Down
Loading

4 comments on commit 3b0c78a

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/ggcorrmat.R:270:5: warning: local variable ‘corr.method.text’ assigned but may not be used

corr.method.text <- "Pearson"
    ^~~~~~~~~~~~~~~~

R/ggcorrmat.R:379:9: warning: local variable ‘n_summary’ assigned but may not be used

n_summary <- numdf_summary(corr_df$n)
        ^~~~~~~~~

R/helpers_gghistostats.R:49:5: warning: local variable ‘label.value’ assigned but may not be used

label.value <- x_pos
    ^~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:134:7: style: Commented code should be removed.

# testthat::expect_equal(tidy_df$std.error, broom_df$std.error, tolerance = 1e-3)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:498:7: style: Commented code should be removed.

# testthat::expect_equal(broom_df1$p.value, tidy_df1$p.value, tolerance = 0.001)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/ggcorrmat.R:270:5: warning: local variable ‘corr.method.text’ assigned but may not be used

corr.method.text <- "Pearson"
    ^~~~~~~~~~~~~~~~

R/ggcorrmat.R:379:9: warning: local variable ‘n_summary’ assigned but may not be used

n_summary <- numdf_summary(corr_df$n)
        ^~~~~~~~~

R/helpers_gghistostats.R:49:5: warning: local variable ‘label.value’ assigned but may not be used

label.value <- x_pos
    ^~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:134:7: style: Commented code should be removed.

# testthat::expect_equal(tidy_df$std.error, broom_df$std.error, tolerance = 1e-3)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:498:7: style: Commented code should be removed.

# testthat::expect_equal(broom_df1$p.value, tidy_df1$p.value, tolerance = 0.001)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/ggcorrmat.R:270:5: warning: local variable ‘corr.method.text’ assigned but may not be used

corr.method.text <- "Pearson"
    ^~~~~~~~~~~~~~~~

R/ggcorrmat.R:379:9: warning: local variable ‘n_summary’ assigned but may not be used

n_summary <- numdf_summary(corr_df$n)
        ^~~~~~~~~

R/helpers_gghistostats.R:49:5: warning: local variable ‘label.value’ assigned but may not be used

label.value <- x_pos
    ^~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:134:7: style: Commented code should be removed.

# testthat::expect_equal(tidy_df$std.error, broom_df$std.error, tolerance = 1e-3)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:498:7: style: Commented code should be removed.

# testthat::expect_equal(broom_df1$p.value, tidy_df1$p.value, tolerance = 0.001)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/ggcorrmat.R:270:5: warning: local variable ‘corr.method.text’ assigned but may not be used

corr.method.text <- "Pearson"
    ^~~~~~~~~~~~~~~~

R/ggcorrmat.R:379:9: warning: local variable ‘n_summary’ assigned but may not be used

n_summary <- numdf_summary(corr_df$n)
        ^~~~~~~~~

R/helpers_gghistostats.R:49:5: warning: local variable ‘label.value’ assigned but may not be used

label.value <- x_pos
    ^~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:134:7: style: Commented code should be removed.

# testthat::expect_equal(tidy_df$std.error, broom_df$std.error, tolerance = 1e-3)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

tests/testthat/test_ggcoefstats.R:498:7: style: Commented code should be removed.

# testthat::expect_equal(broom_df1$p.value, tidy_df1$p.value, tolerance = 0.001)
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please sign in to comment.