更新时间:2021-08-06 19:21:33
coverpage
R Data Visualization Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Conventions
Reader feedback
Customer support
Chapter 1. A Simple Guide to R
Installing packages and getting help in R
Data types in R
Special values in R
Matrices in R
Editing a matrix in R
Data frames in R
Editing a data frame in R
Importing data in R
Exporting data in R
Writing a function in R
Writing if else statements in R
Basic loops in R
Nested loops in R
The apply lapply sapply and tapply functions
Using par to beautify a plot in R
Saving plots
Chapter 2. Basic and Interactive Plots
Introduction
Introducing a scatter plot
Scatter plots with texts labels and lines
Connecting points in a scatter plot
Generating an interactive scatter plot
A simple bar plot
An interactive bar plot
A simple line plot
Line plot to tell an effective story
Generating an interactive Gantt/timeline chart in R
Merging histograms
Making an interactive bubble plot
Constructing a waterfall plot in R
Chapter 3. Heat Maps and Dendrograms
Constructing a simple dendrogram
Creating dendrograms with colors and labels
Creating a heat map
Generating a heat map with customized colors
Generating an integrated dendrogram and a heat map
Creating a three-dimensional heat map and a stereo map
Constructing a tree map in R
Chapter 4. Maps
Introducing regional maps
Introducing choropleth maps
A guide to contour maps
Constructing maps with bubbles
Integrating text with maps
Introducing shapefiles
Creating cartograms
Chapter 5. The Pie Chart and Its Alternatives
Generating a simple pie chart
Constructing pie charts with labels
Creating donut plots and interactive plots
Generating a slope chart
Constructing a fan plot
Chapter 6. Adding the Third Dimension
Constructing a 3D scatter plot
Generating a 3D scatter plot with text
A simple 3D pie chart
A simple 3D histogram
Generating a 3D contour plot
Integrating a 3D contour and a surface plot
Animating a 3D surface plot
Chapter 7. Data in Higher Dimensions
Constructing a sunflower plot
Creating a hexbin plot
Generating interactive calendar maps
Creating Chernoff faces in R
Constructing a coxcomb plot in R
Constructing network plots
Constructing a radial plot
Generating a very basic pyramid plot
Chapter 8. Visualizing Continuous Data
Generating a candlestick plot
Generating interactive candlestick plots
Generating a decomposed time series
Plotting a regression line
Constructing a box and whiskers plot
Generating a violin plot
Generating a quantile-quantile plot (QQ plot)
Generating a density plot