Skip to content

Commit

Permalink
Package it up
Browse files Browse the repository at this point in the history
  • Loading branch information
grantmcdermott committed Apr 7, 2023
1 parent 2426c15 commit dc051a0
Show file tree
Hide file tree
Showing 27 changed files with 1,086 additions and 446 deletions.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^.git$
^.*\.Rproj$
^\.Rproj\.user$
^_EXAMPLES$
^README\.Rmd$
20 changes: 13 additions & 7 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
Package: plot2
Type: Package
Title: What the Package Does Using Title Case
Version: 1.0
Title: Lightweight extension of the base R plot function, with support for
automatic grouping and legend printing, and several other enhancements
Version: 0.0.0.9000
Date: 2023-02-21
Author: Grant McDermott
Maintainer: Grant McDermott <grant.mcdermott@gmail.com>
Description: More details about what the package does. See
<http://cran.r-project.org/doc/manuals/r-release/R-exts.html#The-DESCRIPTION-file>
for details on how to write this part.
License: GPL (>= 2)
Suggests: tinytest
Description: Making base plot less painful.
License: GPL (>= 2)
Depends:
R (>= 3.3)
Imports:
graphics,
grDevices
Suggests:
tinytest,
basetheme
Encoding: UTF-8
RoxygenNote: 7.2.3
339 changes: 0 additions & 339 deletions LICENSE

This file was deleted.

21 changes: 18 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## export all regularly named functions
## (but allow for private functions whose name starts with a dot).name <- function(...)
exportPattern("^[[:alpha:]]+")
# Generated by roxygen2: do not edit by hand

S3method(plot2,default)
S3method(plot2,formula)
export(plot2)
importFrom(grDevices,hcl.colors)
importFrom(grDevices,hcl.pals)
importFrom(grDevices,palette.colors)
importFrom(grDevices,palette.pals)
importFrom(graphics,axis)
importFrom(graphics,box)
importFrom(graphics,grconvertX)
importFrom(graphics,lines)
importFrom(graphics,par)
importFrom(graphics,plot.new)
importFrom(graphics,plot.window)
importFrom(graphics,points)
importFrom(graphics,title)
5 changes: 0 additions & 5 deletions R/hello.R

This file was deleted.

13 changes: 0 additions & 13 deletions R/hello2.R

This file was deleted.

21 changes: 21 additions & 0 deletions R/plot2-package.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#' \code{plot2-package}
#'
#' @title plot2: Lightweight extension of the base R plot function, with support
#' for automatic grouping and legend printing, and several other enhancements
#'
#' @description The goal of **plot2** is to extend the functionality of base R's
#' default (2D) `plot()` function, particularly as it applies to scatter and
#' line plots with grouped data. For example, **plot2** makes it easy to plot
#' different categories of a dataset in a single function call and highlight
#' these categories (groups) using modern colour palettes. Coincident with
#' this grouping support, **plot2** also produces automatic legends with scope
#' for further customization. While the package also offers several other
#' minor enhancements, it tries as far as possible to be a drop-in replacement
#' for the equivalent base plot function. Users should be able to swap a valid
#' `plot` call with `plot2` without any changes to the expected output.
#'
#' @docType package
#' @aliases plot2-package
#' @name plot2-package
#' @keywords internal
"_PACKAGE"
Loading

0 comments on commit dc051a0

Please sign in to comment.