diff --git a/README.md b/README.md index c3c2f28..0167cd4 100644 --- a/README.md +++ b/README.md @@ -2,17 +2,26 @@ sure: Surrogate Residuals -[![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) @@ -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 +Liu, D. and Zhang, H. Residuals and Diagnostics for Ordinal Regression +Models: A Surrogate Approach. *Journal of the American Statistical +Association* (accepted). URL + -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 +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 + diff --git a/man/figures/sure-logo.png b/man/figures/sure-logo.png index c4ee000..c3958d9 100644 Binary files a/man/figures/sure-logo.png and b/man/figures/sure-logo.png differ diff --git a/tools/sure-logo.R b/tools/sure-logo.R index a57812c..3c806bd 100644 --- a/tools/sure-logo.R +++ b/tools/sure-logo.R @@ -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)) + @@ -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() diff --git a/tools/sure-logo.svg b/tools/sure-logo.svg index d37a38a..cb41555 100644 --- a/tools/sure-logo.svg +++ b/tools/sure-logo.svg @@ -3,70 +3,422 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + - + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + - + + + + + + + + + + - + + + + + + + + + + + + + + + + - + + - + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + - + + + + + + + + + - + + + + + + + + - + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + - + + + + + + + + + @@ -127,7 +479,7 @@ - + @@ -2183,36 +2535,36 @@ - + - - - - + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +