Git Product home page Git Product logo

graphics_r's Introduction

R graphics

This repository contains a collection of graphics I have been working on with the aim to learn how to make fancy visualizations using R. Used data covers a variety of topics.

Streetmap

The first plot is a streetmap. I bet you have seen such pictures as elements of decoration and you may have even thought of buying one yourself. Well, I here show you how I made a NYC streetmap for myself following this tutorial and using OpenStreetMap database. Below you can see the final result. As said, this was NYC but you can just use any other spot you like in the world. Besides, you can easily customize the design elements with some notions of ggplot2.

Radarchart

This time I am doing a radar chart, also known as spider or star chart. According to Wikipedia, this chart consists of a sequence of equi-angular spokes, called radii, with each spoke representing one of the variables. The data length of a spoke is proportional to the magnitude of the variable for the data point relative to the maximum magnitude of the variable across all data points. A line is drawn connecting the data values for each spoke. This gives the plot a star-like appearance. Here I will be plotting the macronutrient composition of the most common cereals. I’ll obtain food information from the Spanish Food Composition Database (BEDCA) using the NutrienTrackeR package. For the chart I’ll be using the radarchart package, which provides an interface to the radar chart making function within Chart.js Javascript library. Now you can choose the best cereal for your own needs at a glance!

graphics_r's People

Contributors

maitenat avatar mmaitenat avatar

Watchers

 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.