To plot the ramen ratings csv file, we needed to factor the different types of styles in Ramen Ratings. This will create separate columns for each category of style the ramen comes in. There are 7 styles.
Once you’ve told RStudio to factor out the values or “styles”, when you run this code it will factor out the different styles. Once the factoring code is done, you can now plot your different styles by running a plot code.
As you can see, the most popular styles are pack, bowl, and cup.
Below, shows the result of factoring data as numeric:
Within the histogram, we have run our factors as numeric. We used the code as.numeric instead of factor so that the numbers can be differentiated in the data and plotted as so. As you can see, the most common ratings are from 3.5-4 stars.