Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Getting started with Julia Programming Language
  • Table Of Contents Toc
Getting started with Julia Programming Language

Getting started with Julia Programming Language

By : Ivo Balbaert
4.1 (17)
close
close
Getting started with Julia Programming Language

Getting started with Julia Programming Language

4.1 (17)
By: Ivo Balbaert

Overview of this book

This book is for you if you are a data scientist or working on any technical or scientific computation projects. The book assumes you have a basic working knowledge of high-level dynamic languages such as MATLAB, R, Python, or Ruby.
Table of Contents (14 chapters)
close
close
12
A. List of Macros and Packages
13
Index

Using Gadfly on data

Let's apply Gadfly to visualize the histogram we made in the Using DataFrames section of Chapter 8, I/O, Networking, and Parallel Computing, when examining the quality of wine samples:

# see code in Chapter 8\DataFrames.jl:
using Gadfly
p = plot(df_quality, x="qual", y="no",
         Geom.bar(),Guide.title("Class distributions (\"quality\")"))
draw(PNG(14cm,10cm),p)

This produces the following output:

Using Gadfly on data

Here is an example to explore medical data: medical.csv is a file that contains the following columns: IX, Sex, Age, sBP, dBP, Drink, and BMI (IX is a number for each data line, sBP and dBP are systolic and diastolic blood pressure, Drink indicates whether the person drinks alcohol, and BMI is the body mass index).The following code reads in the data in a DataFrame df file that contains 50 lines and seven columns:

# code in Chapter 10\medical.jl
using Gadfly, DataFrames
df = readtable("medical.csv")
print("size is...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Getting started with Julia Programming Language
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon