Code Monkey home page Code Monkey logo

micromap's Introduction

micromap

Downloads from the RStudio CRAN mirror R-CMD-check

This repository is for development of the USEPA R micromap package. If you would like to contribute to this repository please follow the guidelines in CONTRIBUTING.

Installing the package

Version 1.9.8 is the stable version on CRAN and can be installed as follows.

# install from CRAN
install.packages('micromap')
library(micromap)

The development version can be installed from the development branch on the repository.

# requires devools to install
install.packages('devtools')
library(devtools)

# install from repo
install_github('USEPA/micromap', ref = 'development')
library(micromap)

Citation

citation(package = 'micromap')
## To cite the micromap package in publications use:
## 
##   Quinn C. Payton, Michael G. McManus, Marc H. Weber, Anthony R. Olsen,
##   and Thomas M. Kincaid (2015). micromap: A Package for Linked
##   Micromaps. Journal of Statistical Software, 63(2), 1-16. URL
##   https://www.jstatsoft.org/v63/i02/.
## 
## A BibTeX entry for LaTeX users is
## 
##   @Article{,
##     title = {{micromap}: A Package for Linked Micromaps},
##     author = {Quinn Payton and Tony Olsen and Marc Weber and Michael McManus and Tom Kincaid and Marcus W. Beck},
##     journal = {Journal of Statistical Software},
##     year = {2015},
##     volume = {63},
##     number = {2},
##     pages = {1--16},
##     doi = {10.18637/jss.v063.i02},
##   }

Using the functions

Please consult the publication in the Journal of Statistical Software for a general overview of the package. A vignette is also provided with the development version of the package:

# view vignette
vignette(package = 'micromap')

# open vignette
vignette('Introduction_Guide')

EPA Disclaimer

The United States Environmental Protection Agency (EPA) GitHub project code is provided on an β€œas is” basis and the user assumes responsibility for its use. EPA has relinquished control of the information and no longer has responsibility to protect the integrity , confidentiality, or availability of the information. Any reference to specific commercial products, processes, or services by service mark, trademark, manufacturer, or otherwise, does not constitute or imply their endorsement, recomendation or favoring by EPA. The EPA seal and logo shall not be used in any manner to imply endorsement of any commercial product or activity by EPA or the United States Government.

By submitting a pull request, you make an agreement with EPA that you will not submit a claim of compensation for services rendered to EPA or any other federal agency. Further, you agree not to charge the time you spend developing software code related to this project to any federal grant or cooperative agreement.

License

This project is licensed under the GNU General Public License, GPL-2.

micromap's People

Contributors

fawda123 avatar jaorquina avatar mhweber avatar symanzik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

micromap's Issues

Plotting outliers

dot_build clips outliers. I have hockey stick-shaped data, and the dot representing the maximal value is cut off at the edge of the dot plot.

create_map_table to work with sf objects?

Are there plans to create a method for create_map_table() that accepts a simple features dataframe (i.e. as created by the sf package)?

Thanks for the great package!

need informative error if 'median' is a column name in stat.data

If median is a column name in the data frame passed to stat.data, an obscure error will be returned by ggplot. This is caused by some internal code that creates a median column for the argument median.row = T. A more informative error needs to be returned by mmplot telling the user to not use median as a column name in stat.data.

library(micromap)
data(USstates)
data(edPov)
statePolys <- create_map_table(USstates, IDcolumn="ST")

names(edPov)[names(edPov) %in% 'ed'] <- 'median'

mmplot(stat.data=edPov,map.data=statePolys,
        panel.types=c("labels", "dot","dot", "map"),
        panel.data=list("state","pov","median", NA),
        ord.by="pov", grouping=5,
        median.row=T,
        map.link=c("StateAb","ID")
        )

Returns the error:

###  Error: Discrete value supplied to continuous scale 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.