Code Monkey home page Code Monkey logo

rrsrr's Introduction

rrsrr

To reproduce the contents of the book, download the source code from GitHub, open the file RStudio project file rrsrr.Rproj and run the following commands:

install.packages("remotes")
remotes::install_github("itsleeds/rrsrr")
install.packages("servr")
bookdown::serve_book()

rrsrr's People

Contributors

craigsmith1991 avatar emilynagler avatar eugenividal avatar layik avatar publichealthdatageek avatar robinlovelace avatar trriley avatar wengraf avatar willserp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

rrsrr's Issues

How to create a mosaic plot with vehicles on x axis and casualty type on y axis?

Currently we have this:

rrsrr/08-join.Rmd

Lines 185 to 190 in 33d5ef8

ggplot(cvt_df) +
geom_bar(aes(Var2, Freq, fill = Var1), stat = "identity") +
scale_fill_discrete("Casualty type") +
xlab("Largest vehicle involved") +
ylab("Number of casualties")
# geom_bar(aes(`Vehicle type`, `Casualty type`, fill = `N. crashes`), stat = "identity")

That leads to this:

image

Wondering if this could be nicely presented as a mosaic plot.

Authors?

@Robinlovelace just checking, but some of the text in the book is stuff I wrote for the Transport Data Science course. So can you cite or add me as an author for that section?

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.