-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
160 changed files
with
13,656 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
**Examples of behavior that contributes to creating a positive environment include:** | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
**Examples of unacceptable behavior by participants include:** | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Contributing guidelines | ||
|
||
## How to become a contributor and submit your own code | ||
|
||
### Contributing code | ||
|
||
Make sure you understand how the code base is organized before you contribute any code. Check out our [R Journal paper](https://journal.r-project.org/archive/2016-2/tang-horikoshi-li.pdf) for more details on the architecture. Basically, if you want to extend the functionalities to more classes, you need to implement the following S3 generic functions for the classes you want to support: | ||
|
||
* `autoplot()`, which enables plotting a custom object with `ggplot2`, and | ||
* `fortify()`, which enables converting a custom object to a tidy `data.frame` | ||
|
||
For example, if you want to implement visualizations for `some_r_class` objects, you need to implement the following: | ||
|
||
* `fortify.some_r_class()` to extract neccessary information into a `data.frame` object | ||
* `autoplot.some_r_class()` that takes what `fortify.some_r_class()` returns and create suitable visualization using `ggplot2` syntax | ||
|
||
|
||
### Contribution guidelines and standards | ||
|
||
Before sending your pull request for | ||
[review](https://github.com/sinhrks/ggfortify/pulls), | ||
make sure your changes are consistent with the guidelines and follow the | ||
coding style described in this document. | ||
|
||
#### General guidelines and philosophy for contribution | ||
|
||
* Include unit tests when you contribute new features, as they help to | ||
a) prove that your code works correctly, and b) guard against future breaking | ||
changes to lower the maintenance cost. | ||
* Bug fixes also generally require unit tests, because the presence of bugs | ||
usually indicates insufficient test coverage. | ||
|
||
#### Unit tests and Continuous integration | ||
|
||
* Run `devtools::test("pathToPackage")` to execute all the unit tests locally. | ||
* Unit tests are triggered automatically on [Travis CI](https://travis-ci.org) so you should be able to locate your test result [here](https://travis-ci.org/sinhrks/ggfortify/pull_requests). | ||
|
||
#### Coding style | ||
|
||
We are following Google's R style guide that can be found [here](https://google.github.io/styleguide/Rguide.xml). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
Package: ggfortify | ||
Type: Package | ||
Title: Data Visualization Tools for Statistical Analysis Results | ||
Version: 0.4.11 | ||
Date: 2020-10-02 | ||
Authors@R: c( | ||
person("Masaaki", "Horikoshi", role = c("aut"), | ||
email = "[email protected]"), | ||
person("Yuan", "Tang", role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0001-5243-233X")), | ||
person("Austin", "Dickey", role = c("ctb")), | ||
person("Matthias", "Grenié", role = c("ctb")), | ||
person("Ryan", "Thompson", role = c("ctb")), | ||
person("Luciano", "Selzer", role = c("ctb")), | ||
person("Dario", "Strbenac", role = c("ctb")), | ||
person("Kirill", "Voronin", role = c("ctb")), | ||
person("Damir", "Pulatov", role = c("ctb")) | ||
) | ||
Maintainer: Yuan Tang <[email protected]> | ||
URL: https://github.com/sinhrks/ggfortify | ||
BugReports: https://github.com/sinhrks/ggfortify/issues | ||
Encoding: UTF-8 | ||
Description: Unified plotting tools for statistics commonly used, such as GLM, | ||
time series, PCA families, clustering and survival analysis. The package offers | ||
a single plotting interface for these analysis results and plots in a unified | ||
style using 'ggplot2'. | ||
License: GPL-2 | ||
VignetteBuilder: knitr | ||
Depends: | ||
methods, | ||
ggplot2 (>= 2.0.0) | ||
Imports: | ||
dplyr (>= 0.3), | ||
tidyr, | ||
gridExtra, | ||
grid, | ||
scales, | ||
stringr, | ||
tibble | ||
Suggests: | ||
testthat, | ||
cluster, | ||
changepoint, | ||
dlm, | ||
fGarch, | ||
forecast, | ||
ggrepel, | ||
glmnet, | ||
grDevices, | ||
KFAS, | ||
knitr, | ||
lintr, | ||
mapdata, | ||
markdown, | ||
MASS, | ||
MSwM, | ||
nlme, | ||
raster, | ||
ROCR, | ||
sp, | ||
stats, | ||
strucchange, | ||
survival, | ||
timeSeries, | ||
tseries, | ||
utils, | ||
vars, | ||
xts, | ||
zoo, | ||
lfda | ||
RoxygenNote: 7.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Please go to Stack Overflow for help and support with a [minimal reproducible example](https://stackoverflow.com/help/mcve): | ||
|
||
https://stackoverflow.com/questions/tagged/ggfortify | ||
|
||
If you open a GitHub issue, here is our policy: | ||
|
||
1. It must be a bug, a feature request, or a significant problem with documentation (for small docs fixes please send a PR instead). | ||
2. The form below must be filled out. | ||
|
||
**Here's why we have that policy**: ggfortify developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow. | ||
|
||
------------------------ | ||
|
||
### System information | ||
- **OS Platform and Distribution (e.g., Linux Ubuntu 16.04)**: | ||
- **ggfortify installed from (e.g. CRAN or Github)**: | ||
- **ggfortify version**: | ||
- **Exact command to reproduce**: | ||
|
||
### Describe the problem | ||
Describe the problem clearly here. Be sure to convey here why it's a bug in ggfortify or a feature request. | ||
|
||
### Source code / logs / plots | ||
Include any logs, source code, and plots that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,151 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
S3method(autoplot,Arima) | ||
S3method(autoplot,HoltWinters) | ||
S3method(autoplot,KFS) | ||
S3method(autoplot,Line) | ||
S3method(autoplot,Lines) | ||
S3method(autoplot,MSM.lm) | ||
S3method(autoplot,Polygon) | ||
S3method(autoplot,Polygons) | ||
S3method(autoplot,RasterBrick) | ||
S3method(autoplot,RasterCommon) | ||
S3method(autoplot,RasterLayer) | ||
S3method(autoplot,RasterStack) | ||
S3method(autoplot,SpatialCommon) | ||
S3method(autoplot,SpatialLines) | ||
S3method(autoplot,SpatialLinesDataFrame) | ||
S3method(autoplot,SpatialPoints) | ||
S3method(autoplot,SpatialPointsDataFrame) | ||
S3method(autoplot,SpatialPolygons) | ||
S3method(autoplot,SpatialPolygonsDataFrame) | ||
S3method(autoplot,aareg) | ||
S3method(autoplot,acf) | ||
S3method(autoplot,ar) | ||
S3method(autoplot,basis) | ||
S3method(autoplot,bats) | ||
S3method(autoplot,breakpoints) | ||
S3method(autoplot,clara) | ||
S3method(autoplot,cpt) | ||
S3method(autoplot,cv.glmnet) | ||
S3method(autoplot,decomposed.ts) | ||
S3method(autoplot,density) | ||
S3method(autoplot,dist) | ||
S3method(autoplot,dlmFiltered) | ||
S3method(autoplot,ets) | ||
S3method(autoplot,fGARCH) | ||
S3method(autoplot,factanal) | ||
S3method(autoplot,fanny) | ||
S3method(autoplot,forecast) | ||
S3method(autoplot,fracdiff) | ||
S3method(autoplot,ggmultiplot) | ||
S3method(autoplot,ggplot) | ||
S3method(autoplot,glm) | ||
S3method(autoplot,glmnet) | ||
S3method(autoplot,irts) | ||
S3method(autoplot,kmeans) | ||
S3method(autoplot,lfda) | ||
S3method(autoplot,list) | ||
S3method(autoplot,lm) | ||
S3method(autoplot,map) | ||
S3method(autoplot,matrix) | ||
S3method(autoplot,nnetar) | ||
S3method(autoplot,partition) | ||
S3method(autoplot,pca_common) | ||
S3method(autoplot,performance) | ||
S3method(autoplot,prcomp) | ||
S3method(autoplot,princomp) | ||
S3method(autoplot,silhouette) | ||
S3method(autoplot,spec) | ||
S3method(autoplot,stepfun) | ||
S3method(autoplot,stl) | ||
S3method(autoplot,survfit) | ||
S3method(autoplot,timeSeries) | ||
S3method(autoplot,ts) | ||
S3method(autoplot,tsmodel) | ||
S3method(autoplot,varprd) | ||
S3method(autoplot,xts) | ||
S3method(autoplot,zooreg) | ||
S3method(fitted,ar) | ||
S3method(fortify,Arima) | ||
S3method(fortify,HoltWinters) | ||
S3method(fortify,KFS) | ||
S3method(fortify,MSM.lm) | ||
S3method(fortify,RasterBrick) | ||
S3method(fortify,RasterCommon) | ||
S3method(fortify,RasterLayer) | ||
S3method(fortify,RasterStack) | ||
S3method(fortify,SpatialCommon) | ||
S3method(fortify,SpatialLines) | ||
S3method(fortify,SpatialPoints) | ||
S3method(fortify,SpatialPointsDataFrame) | ||
S3method(fortify,aareg) | ||
S3method(fortify,acf) | ||
S3method(fortify,ar) | ||
S3method(fortify,basis) | ||
S3method(fortify,bats) | ||
S3method(fortify,breakpoints) | ||
S3method(fortify,breakpointsfull) | ||
S3method(fortify,clara) | ||
S3method(fortify,cpt) | ||
S3method(fortify,cv.glmnet) | ||
S3method(fortify,decomposed.ts) | ||
S3method(fortify,density) | ||
S3method(fortify,dist) | ||
S3method(fortify,dlmFiltered) | ||
S3method(fortify,ets) | ||
S3method(fortify,fGARCH) | ||
S3method(fortify,factanal) | ||
S3method(fortify,fanny) | ||
S3method(fortify,forecast) | ||
S3method(fortify,fracdiff) | ||
S3method(fortify,glmnet) | ||
S3method(fortify,irts) | ||
S3method(fortify,kmeans) | ||
S3method(fortify,lfda) | ||
S3method(fortify,list) | ||
S3method(fortify,matrix) | ||
S3method(fortify,nnetar) | ||
S3method(fortify,pam) | ||
S3method(fortify,partition) | ||
S3method(fortify,performance) | ||
S3method(fortify,prcomp) | ||
S3method(fortify,princomp) | ||
S3method(fortify,silhouette) | ||
S3method(fortify,spec) | ||
S3method(fortify,stepfun) | ||
S3method(fortify,stl) | ||
S3method(fortify,survfit) | ||
S3method(fortify,table) | ||
S3method(fortify,timeSeries) | ||
S3method(fortify,ts) | ||
S3method(fortify,tsmodel) | ||
S3method(fortify,varprd) | ||
S3method(grid.draw,ggmultiplot) | ||
S3method(residuals,ar) | ||
export(fortify_map) | ||
export(ggbiplot) | ||
export(ggcpgram) | ||
export(ggdistribution) | ||
export(ggfreqplot) | ||
export(ggtsdiag) | ||
export(rbind_ts) | ||
export(unscale) | ||
exportClasses(ggmultiplot) | ||
import(dplyr) | ||
import(ggplot2) | ||
import(methods) | ||
importFrom(grid,grid.draw) | ||
importFrom(gridExtra,arrangeGrob) | ||
importFrom(gridExtra,grid.arrange) | ||
importFrom(scales,percent) | ||
importFrom(stats,as.formula) | ||
importFrom(stats,complete.cases) | ||
importFrom(stats,predict) | ||
importFrom(stats,reshape) | ||
importFrom(stats,residuals) | ||
importFrom(stats,weights) | ||
importFrom(stringr,str_wrap) | ||
importFrom(tibble,as_tibble) | ||
importFrom(tidyr,gather_) | ||
importFrom(utils,installed.packages) |
Oops, something went wrong.