In this tutorial, we will learn how to annotate a plot with circle to highlight a select portion of a plot made with ggplot2 in R. There are a few options to add a circle on top of a plot with ggplot2. In this example, we will annotate a plot with a circle at a specific location … [Read more...] about How To Annotate a Plot with Circle in R
How To Add Dollar Sign on Axis Ticks in Matplotlib
In this tutorial, we will see examples of how to add dollar sign on axis ticks while making plots with Matplotlib in Python. While making plots to understand the relationship between currency like US dollars and other variables, it is better to show the Dollar symbol/sign on the … [Read more...] about How To Add Dollar Sign on Axis Ticks in Matplotlib
How To Annotate Barplot with bar_label() in Matplotlib
Annotating barplots with labels like texts or numerical values can be helpful to make the plot look better. Till now, one of the options add annotations in Matplotlib is to use pyplot's annotate() function. Starting from Matplotlib version 3.4.2 and above, we have a new … [Read more...] about How To Annotate Barplot with bar_label() in Matplotlib
How To Connect Paired Data Points with Lines in Scatter Plot with Matplotlib
In this tutorial, we will learn how to connect paired data points with lines in a scatter plot using Matplotlib in python. Adding lines to paired data points can be extremely helpful in understanding the relationship between two variables with respect to a third variable. Mainly … [Read more...] about How To Connect Paired Data Points with Lines in Scatter Plot with Matplotlib
How to Add Legend to Scatterplot Colored by a Variable with Matplotlib in Python
Matplotlib, one of the powerful Python graphics library, has many way to add colors to a scatter plot and specify legend. Earlier we saw a tutorial, how to add colors to data points in a scatter plot made with Matplotlib's scatter() function. In this tutorial, we will learn how … [Read more...] about How to Add Legend to Scatterplot Colored by a Variable with Matplotlib in Python