Quadstat Output - Bar Plot for One Variable

Submitted by Anonymous (not verified) on May 13, 2019 - 11:26 AM

Creating a Barplot for One Variable

To create a barplot for one variable, we must first isolate the column we wish to plot. In our case, column X.deaths. was chosen. The values in this row include: 785 863 883 793 971 970 751 743 1000 834.

Now, we will sum these values across the rows, to give us an idea of how far up on the y-axis we will need to go:

785 + 863 + 883 + 793 + 971 + 970 + 751 + 743 + 1000 + 834 + 775 + 680 + 773 + 916 + 806 + 724 + 743 + 693 + 941 + 926 + 861 = 17431.

So we extend our y-axis to 17431 as seen in the barplot below. You can make the barplot as wide as you like. For the sum, we will draw a horizontal line across the barplot at 17431.

You can number the barplot by 5s, 10s, or whatever makes sense. We can also label the x-axis X.deaths.

You can see the result of our efforts below.

Image
Quadstat Statistical Image using the Bar Plot for One Variable web application found on Quadstat.net
Analysis License
Public Domain

From Around the Site...

Title Authored on Content type
R Dataset / Package DAAG / edcT March 9, 2018 - 1:06 PM Dataset
R Dataset / Package wooldridge / infmrt March 9, 2018 - 1:06 PM Dataset
R Dataset / Package boot / hirose March 9, 2018 - 1:06 PM Dataset
R Dataset / Package MASS / farms March 9, 2018 - 1:06 PM Dataset
R Dataset / Package Ecdat / Benefits March 9, 2018 - 1:06 PM Dataset