Giter Club home page Giter Club logo

fundamentals-ggplot2-pearson's Introduction

Material for the Pearson Live Training Session for O’Reilly
"Hands–On Data Visualization with ggplot2: Concepts"

    Blog    Email    Twitter    Instagram    LinkedIn    Behance    BuyMeACoffee   


This is the first training of a two-part workshop series "Create Data Visualizations in R Using the Grammar of Graphics” in collaboration with Pearson and O'Reilly.


Course Set-up

Materials

To get a copy of all the material, clone this repository to a directory of your choice or download and unpack this zip folder.

Software

To run any of the materials locally on your own machine, you will need to install the following:

  • A recent version of R (download from here)
  • A recent version of RStudio (download from here)
  • A suite of R packages:
    • ggplot2
    • readr
    • dplyr
    • forcats
    • stringr
    • ragg
    • scales
    • gapminder

You can install all required R packages at once by running the following code in the R command line:

pkgs <- c("ggplot2", "dplyr", "readr","forcats", "stringr", "scales", "ragg", "gapminder")
unavailable <- setdiff(pkgs, rownames(installed.packages()))
install.packages(unavailable)

To run the code, open up Rstudio. Copy–paste the code in the console pane (by default in the lower left) and hit enter. Several messages should pop up. Scan these messages that are returned for errors and troubleshoot them if necessary. Warnings and other informational messages can be ignored.

Fonts

We are using a non-default font in this session. If you want to run all code "as it is", please install the Asap Condensed typeface which is available for free. You find the files in the fonts folder. Install them by double-clicking.

If you don't want to or can't install the fonts, it is still possible to run the code. Just make sure to replace the font families in the code with one that is installed on your system--or remove the respective rows (more information during the session).

For Mac Users

If you want to save your visualization to PDF, please make sure that XQuartz is installed which is needed to use the cairo pdf device.


Run the Codes

Double-click on the fundamentals-ggplot2-pearson.Rproj file which opens up Rstudio with the working directory set to the same folder (i.e. the directory where the Rproj file is placed).

Now, you can open any script from the files pane (by default in the lower right).

To follow the training, open the script fundamentals-ggplot2-pearson.R.

fundamentals-ggplot2-pearson's People

Contributors

z3tt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.