8 Plots for Qualitative Data

This section provides instructions for creating plots for quantitative data. All plots in Rguroo are highly customizable. In addition to the options in the Basics button dialog, you can customize your plots using the options in the Details button dialog.

8.1 Barplot for Categorical Variables

Instructional video iconUsers guide icon

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.


  1. Open the Plots toolbox on the left-hand side of the Rguroo window. Click on the Create Plot dropdown menu and choose the Barplot function. The Barplot dialog opens (see Figure 8.1).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. To create a barplot with categories across the x-axis, open the Categorical tab (this is the default tab).

  4. Use the Factor 1 dropdown to select the categorical variable for the barplot. If your data is in the form of a frequency or relative frequency table, use the Frequency dropdown to choose your frequency variable.

  5. Click the Preview icon preview icon to see the barplot.

Screenshot of Barplot dilog.

Figure 8.1: Barplot function Dialog

An example of Rguroo barplot output:

Screenshot of a barplot displaying the number of cars by class.

Figure 8.2: An example of a barplot output.

Additional Options for Barplots: - You can obtain relative frequency barplots by selecting the option Proportions.

  • You can add value labels to the bars.

  • You can use Bar Order to reorder the bars or use the Level Editor level editor button to reorder the bar in any desired order.

  • You can create barplots for numerical variables by selecting the Numerical tab.

  • You can customize the appearance of the barplot using the options in the Details button dialog.

8.2 Pareto Chart

Instructional video iconUsers guide icon

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.
  1. Open the Plots toolbox on the left-hand side of the Rguroo window. Click on the Create Plot dropdown menu and choose the Barplot function. The Barplot dialog opens (see Figure 8.3).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. To create a Pareto Chart with categories across the x-axis, open the Categorical tab (this is the default tab).

  4. Use the Factor 1 dropdown to select the categorical variable for the barplot. Use the Frequency dropdown to choose your frequency variable, if your data is in the form of a frequency or relative frequency table.

  5. From the Bar Order dropdown, select Decreasing Value.

  6. Click the Preview icon preview icon to see the Pareto Chart.

Screenshot of Barplot dilog.

Figure 8.3: Barplot function Dialog to Create a Pareto Chart

An example of Rguroo Pareto Chart output:
Screenshot of a Pareto chart displaying the number of cars by class.

Figure 8.4: An example of an Rguroo Pareto chart output.

8.3 Stacked Barplot

Instructional video iconUsers guide icon

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.
  1. Open the Plots toolbox on the left-hand side of the Rguroo window. Click on the Create Plot dropdown menu and choose the Barplot function. The Barplot dialog opens (see Figure 8.6).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. To create a barplot with categories across the x-axis, click the Categorical tab (this is the default tab).

  4. Select two categorical variables from the Factor 1 and Factor 2 dropdowns. If your data is in the form of a frequency table, select the frequency variable from the Frequency dropdown.

  5. Select the Stacked option. Adjust the other options appropriately.

  6. Click the Preview icon preview icon to see the stacked barplot.

Screenshot of Barplot dilog.

Figure 8.5: Barplot function Dialog to Create a Stacked Barplot

An example of an Rguroo stacked barplot output:

Screenshot of a stacked barplot displaying the number of cars by class.

Figure 8.6: An example of a stacked barplot output.

8.4 Side-by-Side Barplot

Instructional video iconUsers guide icon

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.
  1. Open the Plots toolbox on the left-hand side of the Rguroo window. Click on the Create Plot dropdown menu and choose the Barplot function.The Barplot dialog opens (see Figure 8.7).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. To create a barplot with categories across the x-axis, click the Categorical tab (this is the default tab).

  4. Select two categorical variables from the Factor 1 and Factor 2 dropdowns. If your data is in the form of a frequency table, select the frequency variable from the Frequency dropdown.

  5. Select the Side by side option. Adjust the other options appropriately.

  6. Click the Preview icon preview icon to see the side-by-side barplot.

Screenshot of Barplot dilog.

Figure 8.7: Barplot function Dialog to Create a Side-by-Side Barplot

An example of an Rguroo side-by-side barplot output:
Screenshot of a stacked barplot displaying the number of cars by class.

Figure 8.8: An example of an Rguroo side-by-side plot.

8.5 Pie Charts

Instructional video iconUsers guide icon

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.
  1. Open the Plots toolbox on the left-hand side of the Rguroo window. Click on the Create Plot dropdown menu and choose the Pie Chart function. The Pie Chart dialog opens (see Figure 8.9).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. Select a categorical variable from the Factor dropdown. If data are in frequency table format, select the frequency variable from the Frequency dropdown.

  4. (Optional) To order the pie slices from largest to smallest, select Increasing Value in the dropdown Slice Order.

  5. Click the Preview icon preview icon to see the side-by-side barplot.

Screenshot of Piechart dilog.

Figure 8.9: Piechart function Dialog

An example of an Rguroo pie chart output:
Screenshot of a pie chart  displaying the proportion on of cars in each class.

Figure 8.10: An example of a pie chart output.

8.6 Mosaic Plot

  1. Use a dataset in your Rguroo account or recreate the example below by importing the cardata dataset from the Rguroo dataset repository called Rguroo Users Guide into your account.
Click here to see a portion of the dataset. Screenshot of the first 5 rows of the Cardata dataset.
  1. Open the Analytics toolbox on the left-hand side of the Rguroo window. Click on the Analysis dropdown menu and choose the Contingency Table function. The Contingency Table dialog opens see Figure @ref(mosaic_GUI).

  2. Select your dataset from the Dataset dropdown menu. In this example, we select the cardata.

  3. Select two categorical variables from the Factor 1 and Factor 2 dropdowns. If data are in a frequency table format, select the frequency variable from the Frequency dropdown.

  4. Select the Mosaic Plot option.

  5. Select the checkbox Mosaic Plot.

  6. Click the Preview icon preview icon to see the mosaic plot.

Screenshot of Contingency Table.

(#fig:mosaic_GUI)Contingency table dialog to create Mosaic Plot

An example of an Rguroo mosaic plot output:
Screenshot of a stacked barplot displaying the number of cars by class.

Figure 8.11: An example of a mosaic plot output.