Skip to content

Commit

Permalink
Merge pull request #42 from rsquaredacademy/develop
Browse files Browse the repository at this point in the history
CRAN release
  • Loading branch information
aravindhebbali authored Nov 7, 2024
2 parents 08030d6 + 31ed371 commit 4b9ceec
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: vistributions
Type: Package
Title: Visualize Probability Distributions
Version: 0.1.2.9000
Version: 0.2.0
Authors@R: person("Aravind", "Hebbali", email = "hebbali.aravind@gmail.com", role = c("aut", "cre"))
Description: Visualize and compute percentiles/probabilities of normal, t, f, chi square
and binomial distributions.
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# vistributions 0.2.0

This is a minor release for bug fixes.

# vistributions 0.1.2

This is a patch release to fix CRAN note about lazy data.
Expand Down
30 changes: 15 additions & 15 deletions R/vdist-plots.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ bperc_plot_build <- function(data, method, n, p, tp) {
}

return(plot)

}

cplot_plot_build <- function(data, df, range, normal) {
Expand All @@ -98,7 +98,7 @@ cplot_plot_build <- function(data, df, range, normal) {
ggplot(data$plot_data) +
geom_line(aes(x, chi),
color = '#4682B4',
size = 2) +
linewidth = 2) +
ggtitle(label = "Chi Square Distribution",
subtitle = paste("df =", df)) +
ylab('') +
Expand Down Expand Up @@ -191,7 +191,7 @@ cperc_plot_build <- function(data, method, probs, df) {
plot +
geom_vline(xintercept = data$pp,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = data$point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -267,7 +267,7 @@ cprob_plot_build <- function(data, method, perc, df) {
gplot +
geom_vline(xintercept = perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = data$point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -388,7 +388,7 @@ fperc_plot_build <- function(data, probs, num_df, den_df, method) {
gplot +
geom_vline(xintercept = data$pp[i],
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -472,7 +472,7 @@ fprob_plot_build <- function(data, perc, num_df, den_df, method) {
gplot +
geom_vline(xintercept = perc[i],
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -615,7 +615,7 @@ nperc_plot_build <- function(data, probs, mean, sd, method) {
gplot +
geom_vline(xintercept = data$pp[i],
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -720,7 +720,7 @@ nprob_plot_build <- function(data, perc, mean, sd, method) {
gplot +
geom_vline(xintercept = perc[i],
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -849,7 +849,7 @@ tperc_plot_build <- function(data, probs, df, method) {
gplot +
geom_vline(xintercept = data$pp[i],
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -910,7 +910,7 @@ tprob_plot_build <- function(data, perc, df, method) {
size = 3) +
geom_vline(xintercept = perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -939,7 +939,7 @@ tprob_plot_build <- function(data, perc, df, method) {
size = 3) +
geom_vline(xintercept = perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x, y = y),
shape = 4,
Expand Down Expand Up @@ -974,10 +974,10 @@ tprob_plot_build <- function(data, perc, df, method) {
size = 3) +
geom_vline(xintercept = perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_vline(xintercept = -perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x1, y = y),
shape = 4,
Expand Down Expand Up @@ -1016,10 +1016,10 @@ tprob_plot_build <- function(data, perc, df, method) {
size = 3) +
geom_vline(xintercept = perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_vline(xintercept = -perc,
linetype = 2,
size = 1) +
linewidth = 1) +
geom_point(data = point_data,
mapping = aes(x = x1, y = y),
shape = 4,
Expand Down
2 changes: 1 addition & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ knitr::opts_chunk$set(
<!-- badges: start -->
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/vistributions)](https://cran.r-project.org/package=vistributions)
[![R-CMD-check](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml)
[![Coverage Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://codecov.io/github/rsquaredacademy/vistributions?branch=master)
[![Coverage Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://app.codecov.io/github/rsquaredacademy/vistributions?branch=master)
<!-- badges: end -->

## Installation
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[![CRAN_Status_Badge](https://www.r-pkg.org/badges/version/vistributions)](https://cran.r-project.org/package=vistributions)
[![R-CMD-check](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/rsquaredacademy/vistributions/actions/workflows/R-CMD-check.yaml)
[![Coverage
Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://codecov.io/github/rsquaredacademy/vistributions?branch=master)
Status](https://img.shields.io/codecov/c/github/rsquaredacademy/vistributions/master.svg)](https://app.codecov.io/github/rsquaredacademy/vistributions?branch=master)
<!-- badges: end -->

## Installation
Expand Down
5 changes: 0 additions & 5 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
## Test environments
* local Windows 10 install, R 4.0.4
* ubuntu 14.04 (on GitHub Actions), R 4.1.0, R-devel
* win-builder (devel and release)

## R CMD check results

0 errors | 0 warnings | 0 note
Expand Down

0 comments on commit 4b9ceec

Please sign in to comment.