Exercise

# Basic Plotting with Factors

To get **basic graphics** in R, you can make use of the `plot()`

function. It is an extremely flexible and extensible function that uses the **'traditional graphics system'**. For example, to simply plot the `workshop`

factor as a bar chart, you can use `plot(workshop)`

.

If you want to include a second factor, you can type `plot(factor1, factor2)`

. The first factor is shown on the x-axis, while the second factor is displayed on the y-axis.

The `workshop`

and the `gender`

factors are pre-loaded in your workspace.

Instructions

**100 XP**

- Plot the
`workshop`

factor on the x-axis and the`gender`

factor on the y-axis. - Plot the
`gender`

factor on the x-axis and the`workshop`

factor on the y-axis. - Compare the two plots by using the arrows above the plots.