• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Data Viz with Python and R

Learn to Make Plots in Python and R

  • Home
  • Seaborn
  • Matplotlib
  • ggplot2
  • Altair
  • About
    • Privacy Policy
  • Visualizing Activation Functions in Neural Networks
  • Confusion Matrix Calculator
  • Visualizing Dropout Rate in Neural Network
  • Visualizing Loss Functions in Neural Networks
  • Show Search
Hide Search

Visualizing Stock Return of a Company Over Time with Barplots

datavizpyr · December 4, 2021 ·

Coloring Barplots Based on Sign: Stock Return

In this tutorial, we will learn how to visualize a company’s stock return over time. A stock's return is defined as the capital gains/losses and income from dividend. We will use the adjusted stock price to compute the nominal return using the fantastic tidyquant R … [Read more...] about Visualizing Stock Return of a Company Over Time with Barplots

Filed Under: ggplot2, R Tagged With: Stock Return Barplot

Adding and Troubleshooting Text Annotations on a plot with ggplot2

datavizpyr · November 10, 2021 ·

Illustrating Text Annotation Troubles

Adding text annotations to a plot can greatly help understanding a plot better. In this tutorial, we will learn couple of examples of adding text annotations to a scatter plot with three groups of samples. First we see couple of examples of what might typically go wrong while … [Read more...] about Adding and Troubleshooting Text Annotations on a plot with ggplot2

Filed Under: ggplot2, R Tagged With: add text annotation with annotate()

Visualizing Stock Price of a Single Company Over Time

datavizpyr · November 5, 2021 ·

Month Name and Year with scale_x_date in ggplot2

In this tutorial, we will learn how to visualize a company's stock price over time. Stock data is an example of time series data, where we have stock price of a company for a period of time. First, we will learn how to get stock price for a company of interest and use ggplot2 to … [Read more...] about Visualizing Stock Price of a Single Company Over Time

Filed Under: ggplot2, R Tagged With: Stock Price Over Time, Time Series Plot ggplot2

How to Color Barplots with R Color Brewer

datavizpyr · October 5, 2021 ·

Color barplot with RColorBrewer palette

In this tutorial we will learn to how to color bars in a barplot using R Color Brewer's color palettes. R Color Brewer package "RColorBrewer" offers numerous color palettes that are useful in common situations. For example, it gives "Sequential" palette for ordered data, … [Read more...] about How to Color Barplots with R Color Brewer

Filed Under: barplot ggplot2, Color Palettes RColorBrew, R Tagged With: Color Barplot with RColorBrewer

How to Highlight Groups with Convex Hull in ggplot2

datavizpyr · September 28, 2021 ·

Highlighting Groups in a plot with Convex Hull in R

In this tutorial, we will learn how to annotate or add colors to multiple groups in a scatter plot made with ggplot2 in R using convex hull shapes. Convex hull is basically a box or polygon connecting the outermost data points for each group in a scatter plot with multiple … [Read more...] about How to Highlight Groups with Convex Hull in ggplot2

Filed Under: ggplot2, R Tagged With: convex hull ggplot2, highlight groups with convex hull

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 16
  • Page 17
  • Page 18
  • Page 19
  • Page 20
  • Interim pages omitted …
  • Page 55
  • Go to Next Page »

Primary Sidebar

Python & R Viz Hubs

  • Seaborn Guide & Cookbook
  • ggplot2 Guide & Cookbook
  • Matplotlib Guide & Cookbook
  • Confusion Matrix Calculator
  • Visualizing Activation Functions
  • Visualizing Dropout
  • Visualizing Loss Functions

Buy Me a Coffee

Copyright © 2026 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version