Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Julia for Data Science

You're reading from  Julia for Data Science

Product type Book
Published in Sep 2016
Publisher Packt
ISBN-13 9781785289699
Pages 346 pages
Edition 1st Edition
Languages
Author (1):
Anshul Joshi Anshul Joshi
Profile icon Anshul Joshi

Table of Contents (17) Chapters

Julia for Data Science
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. The Groundwork – Julia's Environment 2. Data Munging 3. Data Exploration 4. Deep Dive into Inferential Statistics 5. Making Sense of Data Using Visualization 6. Supervised Machine Learning 7. Unsupervised Machine Learning 8. Creating Ensemble Models 9. Time Series 10. Collaborative Filtering and Recommendation System 11. Introduction to Deep Learning

Data visualization using Gadfly


Gadfly is an exhaustive plotting and data visualization package written in Julia by Daniel Jones. It is based on the book, The Grammar of Graphics, by Leland Wilkinson. It is largely inspired by ggplot2 for R, which is another amazing package for plotting and visualizations.

Installing Gadfly

Installation is straightforward as it is a registered Julia package:

Julia> Pkg.update()
Julia> Pkg.add("Gadfly")

This will also install a few other packages needed by Gadfly.

To use Gadfly, run this line:

Julia> using Gadfly

We will use IJulia (jupyter notebook) in our examples.

Gadfly has the capability to render high-quality graphics and visualizations in PNG, SVG, Postscript, and PDF. Embedded JavaScript is used by the SVG backend, which provides interactivity with the graphics such as zooming, panning, and toggling.

It is good to have Cairo installed, as it is needed by PNG, PostScript, and PDF:

Julia> Pkg.add("Cairo")

Suppose we create an exampleplot. To...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}