Book Image

Interactive Visualization and Plotting with Julia

By : Diego Javier Zea
Book Image

Interactive Visualization and Plotting with Julia

By: Diego Javier Zea

Overview of this book

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.
Table of Contents (19 chapters)
1
Section 1 – Getting Started
6
Section 2 – Advanced Plot Types
12
Section 3 – Mastering Plot Customization

Visualizing phylogenetic trees

A phylogeny or phylogenetic tree aims to show the evolutionary relationships between biological entities, such as species or genes. Trees, in graph theory, are fully connected undirected graphs without cycles; therefore, we can use software aimed at graph visualization to explore phylogenies. In fact, in Chapter 7, Visualizing Graphs, we used GraphRecipes to visualize other trees, namely, abstract syntax trees and type hierarchies. However, if we want to visualize phylogenies, we should rely on dedicated packages. The main package for working with phylogenies in the Julia ecosystem is Phylo, from the EcoJulia organization. This package offers a Plots recipe for their tree objects. In this section, we will explore the Phylo package and phylogenetic trees. However, if you deal with phylogenetic networks, you should rely on the PhyloNetworks and PhyloPlots packages. Phylogenetic networks are more complex graphs than trees in that a node can have more than...