Skip to content

Commit

Permalink
update logo
Browse files Browse the repository at this point in the history
  • Loading branch information
bgreenwell committed Sep 11, 2018
1 parent 19e602c commit e386f9b
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 57 deletions.
25 changes: 20 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,26 @@ sure: Surrogate Residuals <img src="man/figures/sure-logo.png" align="right" wid
========================================================================================================

<!-- [![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/sure)](https://cran.r-project.org/package=sure) -->
[![Build Status](https://travis-ci.org/koalaverse/sure.svg?branch=master)](https://travis-ci.org/koalaverse/sure) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/koalaverse/sure?branch=master&svg=true)](https://ci.appveyor.com/project/koalaverse/sure) [![codecov](https://codecov.io/gh/koalaverse/sure/branch/master/graph/badge.svg)](https://codecov.io/gh/koalaverse/sure)
[![Build
Status](https://travis-ci.org/koalaverse/sure.svg?branch=master)](https://travis-ci.org/koalaverse/sure)
[![AppVeyor Build
Status](https://ci.appveyor.com/api/projects/status/github/koalaverse/sure?branch=master&svg=true)](https://ci.appveyor.com/project/koalaverse/sure)
[![codecov](https://codecov.io/gh/koalaverse/sure/branch/master/graph/badge.svg)](https://codecov.io/gh/koalaverse/sure)

Overview
--------

An R package for constructing **SU**rrogate-based **RE**siduals and diagnostics for ordinal and general regression models; based on the approach described in [Dungang and Zhang (2017)](http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20).
An R package for constructing **SU**rrogate-based **RE**siduals and
diagnostics for ordinal and general regression models; based on the
approach described in [Dungang and Zhang
(2017)](http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20).

Installation
------------

The `sure` package is [currently listed on CRAN](https://CRAN.R-project.org/package=sure) and can easily be installed:
The `sure` package is [currently listed on
CRAN](https://CRAN.R-project.org/package=sure) and can easily be
installed:

``` r
# Install from CRAN (recommended)
Expand All @@ -26,6 +35,12 @@ devtools::install_github("koalaverse/sure")
References
----------

Liu, D. and Zhang, H. Residuals and Diagnostics for Ordinal Regression Models: A Surrogate Approach. *Journal of the American Statistical Association* (accepted). URL <http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20>
Liu, D. and Zhang, H. Residuals and Diagnostics for Ordinal Regression
Models: A Surrogate Approach. *Journal of the American Statistical
Association* (accepted). URL
<http://www.tandfonline.com/doi/abs/10.1080/01621459.2017.1292915?journalCode=uasa20>

Greenwell, B.M., McCarthy, A.J., Boehmke, B.C. & Dungang, L. (2018) "Residuals and diagnostics for binary and ordinal regression models: An introduction to the sure package." The R Journal (pre-print). URL <https://journal.r-project.org/archive/2018/RJ-2018-004/index.html>
Greenwell, B.M., McCarthy, A.J., Boehmke, B.C. & Dungang, L. (2018)
“Residuals and diagnostics for binary and ordinal regression models: An
introduction to the sure package.” The R Journal (pre-print). URL
<https://journal.r-project.org/archive/2018/RJ-2018-004/index.html>
Binary file modified man/figures/sure-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 7 additions & 5 deletions tools/sure-logo.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ greys <- RColorBrewer::brewer.pal(9, "Greys")

# Hexagon logo
g <- ggplot() +
geom_polygon(data = hex, aes(x, y), color = greys[7L], fill = greys[1L],
geom_polygon(data = hex, aes(x, y), color = greys[7L], fill = "white",
size = 3) +
geom_subview(subview = p, x = 0, y = 0, width = 1.75, height = 1.25) +
annotate(geom = "text", label = "sure", x = 0, y = -0.8,
family = "Open Sans Light", color = greys[7L], size = 7) +
# family = "Open Sans Light",
color = greys[7L], size = 7) +
annotate(geom = "text", label = "SUrrogate REsiduals", x = 0, y = 0.7,
family = "Open Sans Light", color = greys[7L], size = 3.5) +
# family = "Open Sans Light",
color = greys[7L], size = 3.5) +
coord_equal(xlim = range(hex$x), ylim = range(hex$y)) +
scale_x_continuous(expand = c(0.04, 0)) +
scale_y_reverse(expand = c(0.04, 0)) +
Expand All @@ -43,8 +45,8 @@ g <- ggplot() +
theme(axis.ticks.length = unit(0, "mm"))
print(g)

png("tools/sure-logo.png", width = 181, height = 209, bg = "transparent",
type = "cairo-png")
png("man/figures/sure-logo.png", width = 181, height = 209, bg = "transparent",
type = "quartz")
print(g)
dev.off()

Expand Down
Loading

0 comments on commit e386f9b

Please sign in to comment.