Table of Contents
Preface 1
Chapter 1: Basic Graph Functions 7
Introduction 7
Creating scatter plots 8
Creating line graphs 12
Creating bar charts 14
Creating histograms and density plots 17
Creating box plots 20
Adjusting X and Y axes limits 22
Creating heat maps 24
Creating pairs plots 27
Creating multiple plot matrix layouts 30
Adding and formatting legends 33
Creating graphs with maps 37
Saving and exporting graphs 40
Chapter 2: Beyond the Basics: Adjusting Key Parameters 43
Introduction 43
Setting colors of points, lines, and bars 44
Setting plot background colors 48
Setting colors for text elements: axis annotations, labels, plot titles,
and legends 50
Choosing color combinations and palettes 52
Setting fonts for annotations and titles 54
Choosing plotting point symbol styles and sizes 56
Choosing line styles and width 58
Choosing box styles 60
Adjusting axis annotations and tick marks 63
Formatting log axes 65
Setting graph margins and dimensions 66
`````````