The Julia programming language offers a fresh perspective into the data visualization field.
Interactive Visualization and Plotting with Julia begins by introducing the Julia language and the Plots package. The book then gives a quick overview of the Julia plotting ecosystem to help you choose the best library for your task. In particular, you will discover the many ways to create interactive visualizations with its packages. You'll also leverage Pluto notebooks to gain interactivity and use them intensively through this book. You'll find out how to create animations, a handy skill for communication and teaching. Then, the book shows how to solve data analysis problems using DataFrames and various plotting packages based on the grammar of graphics. Furthermore, you'll discover how to create the most common statistical plots for data exploration. Also, you'll learn to visualize geographically distributed data, graphs and networks, and biological data. Lastly, this book will go deeper into plot customizations with Plots, Makie, and Gadfly―focusing on the former―teaching you to create plot themes, arrange multiple plots into a single figure, and build new plot types.
By the end of this Julia book, you'll be able to create interactive and publication-quality static plots for data analysis and exploration tasks using Julia.
What you will learn
- Create interactive plots with Makie, Plots, Jupyter, and Pluto
- Create standard statistical plots and visualize clustering results
- Plot geographically distributed and biological data
- Visualize graphs and networks using GraphRecipes and GraphPlots
- Find out how to draw and animate objects with Javis, Plots, and Makie
- Define plot themes to reuse plot visual aspect customizations-
- Arrange plots using Plots, Makie, and Gadfly layout systems
- Define new plot types and determine how Plots and Makie show objects
Who this book is for
Data analysts looking to explore Julia's data visualization capabilities will find this book helpful, along with scientists and academics who want to generate and communicate knowledge and improve their teaching material. This data visualization book will also interest Julia programmers willing to delve into the language plotting ecosystem and improve their visualization skills. Basic programming knowledge is assumed ― but the book will introduce you to Julia's important features. Familiarity with mathematical and statistical concepts will help you make the most of some of the chapters.
Author(s): Diego Javier Zea
Edition: 2022
Publisher: Packt Publishing
Year: 2022
Language: English
Pages: 365
Tags: Julia, Plots, Makie, Gadfly
Cover
Title Page
Copyright and Credits
Contributors
Table of Contents
Preface
Section 1 – Getting Started
Chapter 1: An Introduction to Julia for Data Visualization and Analysis
Technical requirements
Getting started with Julia
Installing Julia
Interacting with the Julia REPL
Running Julia scripts
Installing and managing packages
Installing Julia packages
Loading packages
Managing environments
Choosing a development environment
The Julia extension for VS Code
Using Julia notebooks
Knowing the basic Julia types for data visualization
Defining and calling functions
Working with Julia types
Creating a basic plot
Plotting multiple series
Modifying plots
Scatter plots
Bar plots
Heatmaps
Simple layouts
Summary
Further reading
Chapter 2: The Julia Plotting Ecosystem
Technical requirements
Plotting libraries
Pure Julia packages
Wrappers
Understanding the Plots package
Plots' backends
Introducing Makie
Summary
Further reading
Chapter 3: Getting Interactive Plots with Julia
Technical requirements
Libraries focusing on interactivity
Modifying the underlying data
Modifying data’s perceptual formatting
Exploiting the interactivity of Plots backends
Interactive and reactive plots with Makie
Interactivity on Jupyter and Pluto notebooks
Creating interactive visualizations with Pluto
Interactive visualization with Jupyter
Sharing your interactive visualizations
Creating a Julia application
Sharing Pluto notebooks
Publishing JavaScript plots
Creating applications to serve interactive plots
Summary
Further reading
Chapter 4: Creating Animations
Technical requirements
Easy animation using Plots
Using the Animations package
Animating Makie plots
Getting started with Javis
Summary
Further reading
Section 2 – Advanced Plot Types
Chapter 5: Introducing the Grammar of Graphics
Technical requirements
Introducing the Grammar of Graphics
Working with DataFrames and tidy data
Encoding data
Exploring data with Gadfly
Introducing the Grammar of Interactive Graphics with VegaLite
Makie’s Algebra of Graphics
Summary
Further reading
Chapter 6: Creating Statistical Plots
Technical requirements
Introducing StatsPlots
Visualizing univariate distributions
Drawing histograms
Approximating density functions
Introducing boxplots
Visualizing distribution shapes with violin plots
Comparing distributions with Q-Q plots
Plotting bivariate distributions and regressions
Drawing regression lines
Creating marginal plots
Visualizing clustering results
Comparing between groups
Summary
Further reading
Chapter 7: Visualizing Graphs
Technical requirements
Working with graphs in Julia
Working with MetaGraph
Saving and loading graphs
Graph visualization packages
Visualizing graphs with GraphPlot
Exploring GraphRecipes
Creating interactive graphs with GraphMakie
Graph layouts
Analyzing graphs
Summary
Further reading
Chapter 8: Visualizing Geographically Distributed Data
Technical requirements
Creating choropleth maps
Creating a choropleth map with Plots
Creating a choropleth map with GeoMakie
Introducing OpenStreetMapX
Summary
Further reading
Chapter 9: Plotting Biological Data
Technical requirements
Visualizing phylogenetic trees
Plotting a protein sequence and structure
Exploring multiple sequence alignments
Visualizing protein structures
Creating dashboards for biological data
Summary
Further reading
Section 3 – Mastering Plot Customization
Chapter 10: The Anatomy of a Plot
Technical requirements
The anatomy of a Plots plot
Knowing the components of Makie’s figures
Exploring Gadfly’s customizable components
Summary
Further reading
Chapter 11: Defining Plot Layouts to Create Figure Panels
Technical requirements
Creating layouts with Plots
Understanding Makie’s layout system
Composing Gadfly plots
Summary
Further reading
Chapter 12: Customizing Plot Attributes – Axes, Legends, and Colors
Technical requirements
Exploring plot attributes
Using LaTeX equations
Formatting the fonts
Customizing the axes
Tailoring legends
Coloring our figures
Color attributes
Summary
Further reading
Chapter 13: Designing Plot Themes
Technical requirements
Working with themes
Using and defining themes with Plots
Theming with Makie
Using themes with Gadfly
Summary
Further reading
Chapter 14: Designing Your Own Plots – Plot Recipes
Technical requirements
Drawing shapes
Creating plotting recipes
User recipes
Type recipes
Plot recipes
Series recipes
Writing plotting recipes for Makie
Summary
Further reading
Index
Other Books You May Enjoy