Mastering RStudio – Develop, Communicate, and Collaborate with R
eBook - ePub

Mastering RStudio – Develop, Communicate, and Collaborate with R

  1. 348 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Mastering RStudio – Develop, Communicate, and Collaborate with R

Book details
Book preview
Table of contents
Citations

About This Book

Harness the power of RStudio to create web applications, R packages, markdown reports and pretty data visualizationsAbout This Book• Discover the multi-functional use of RStudio to support your daily work with R code• Learn to create stunning, meaningful, and interactive graphs and learn to embed them into easy communicable reports using multiple R packages• Develop your own R packages and Shiny web apps to share your knowledge and collaborate with othersWho This Book Is ForThis book is aimed at R developers and analysts who wish to do R statistical development while taking advantage of RStudio's functionality to ease their development efforts. R programming experience is assumed as well as being comfortable with R's basic structures and a number of functions.What You Will Learn• Discover the RStudio IDE and details about the user interface• Communicate your insights with R Markdown in static and interactive ways• Learn how to use different graphic systems to visualize your data• Build interactive web applications with the Shiny framework to present and share your results• Understand the process of package development and assemble your own R packages• Easily collaborate with other people on your projects by using Git and GitHub• Manage the R environment for your organization with RStudio and Shiny server• Apply your obtained knowledge about RStudio and R development to create a real-world dashboard solutionIn DetailRStudio helps you to manage small to large projects by giving you a multi-functional integrated development environment, combined with the power and flexibility of the R programming language, which is becoming the bridge language of data science for developers and analyst worldwide. Mastering the use of RStudio will help you to solve real-world data problems.This book begins by guiding you through the installation of RStudio and explaining the user interface step by step. From there, the next logical step is to use this knowledge to improve your data analysis workflow. We will do this by building up our toolbox to create interactive reports and graphs or even web applications with Shiny. To collaborate with others, we will explore how to use Git and GitHub with RStudio and how to build your own packages to ensure top quality results. Finally, we put it all together in an interactive dashboard written with R.Style and approachAn easy-to-follow guide full of hands-on examples to master RStudio.Beginning from explaining the basics, each topic is explained with a lot of details for every feature.

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Mastering RStudio – Develop, Communicate, and Collaborate with R by Julian Hillebrand, Maximilian H. Nierhoff, Maximilian H. Nierhoff in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781783982554
Edition
1

Mastering RStudio – Develop, Communicate, and Collaborate with R


Table of Contents

Mastering RStudio – Develop, Communicate, and Collaborate with R
Credits
About the Authors
About the Reviewer
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. The RStudio IDE – an Overview
Downloading and installing RStudio
Installing R
For Ubuntu
Using RStudio with different versions of R
Windows
Ubuntu
Updating RStudio
Getting to know the RStudio interface
The four main panes
The Source editor pane
Syntax highlighting
Code completion
Executing R Code from the source pane
Code folding
Debugging code
The Environment and History panes
History pane
Console pane
The Files, Plots, Packages, Help, and Viewer panes
The Files pane
The Plot pane
The Packages pane
The Help pane
The Viewer pane
Customizing RStudio
Using keyboard shortcuts
Working with RStudio and projects
Creating a project with RStudio
Locating your project
Using RStudio with Dropbox
Preventing Dropbox synchronization conflicts
Creating your first project
Organizing your folders
Saving the data
Analyzing the data
Correcting the path for report exporting
Exporting your analysis as a report
Summary
2. Communicating Your Work with R Markdown
The concept of reproducible research
Doing reproducible research with R Markdown
What is Markdown?
What is literate programming?
A brief side note on Sweave
Dynamic report generation with knitr
What is R Markdown?
A side note about LaTeX
Configuring R Markdown
Getting started with R Markdown in RStudio
Creating your first R Markdown document
The R Markdown interface
Inspecting the R Markdowns panes
Explaining the R Markdown File pane settings
File tab arrows
Saving current document
Spell check
Find/replace
Question mark
Knit HTML
Gear icon
Output Format: HTML
Output Format – PDF
Output Format – Word
Run and re-run icons
Chunks
Jump to menu
Viewer pane options
Advanced R Markdown documents
Getting to know R code chunks
Customizing R code chunks
Chunk options
Avoiding errors, warnings, and other messages
Hiding distracting lines of code
Embedding R code inline
Labeling code chunks
Pandoc and knitr options
Output formats
Changing the look of the output
Using a custom CSS style sheet
Using R Markdown templates
Package vignette
The Tufte handout
Compiling R Notebooks
Generating R Markdown presentations
ioslides
Slidy
Beamer
Summary
3. R Lesson I – Graphics System
The graphic system in R
An introduction to the graphic devices
The R graphics package—base
Creating base plots
Using the base graphics
Base graphics parameters
Annotating with base plotting functions
Introducing the lattice package
Creating lattice plots
Getting to know the lattice plot types
The lattice panel functions
Lattice key points summary
Introducing ggplot2
Looking at the history of ggplot2
The Grammar of Graphics
Applying The Grammar of Graphics with ggplot2
Using ggplot2
Installing the ggplot2 package
Qplot() and ggplot()
Creating your first graph with ggplot2
Modifying ggplot objects with the plus operator
Setting the aesthetics parameter
Adding layers using geoms
Choosing the right geom
Modifying parameters
Changing the color of your plot
Changing the shape
Changing the size
Saving ggplot objects in variables
Using stats layers
Saving ggplot graphs
Customizing your charts
Subsetting your data
Setting titles
Changing the axis labels
Swapping the X and Y axes
Improving the look of ggplot2 charts
Creating graphs with the economist theme
Creating graphs with the wall street journal theme
Interactive plotting systems
Introducing ggvis
Our first ggvis graphic
Interactive ggvis graphs
A look at the rCharts package
Using googleVis
HTML widgets
dygraphs
Leaflet
rbokeh
Summary
4. Shiny – a Web-app Framework for R
Introducing Shiny – the app framework
Creating a new Shiny web app...

Table of contents

  1. Mastering RStudio – Develop, Communicate, and Collaborate with R