官术网_书友最值得收藏!

Introduction

In this chapter, we will learn about scatter plots in depth by looking at some advanced recipes. Scatter plots are one of the most commonly used type of graphs in data analysis. In the first chapter, we learned how to create a basic scatter plot. Now, we will learn how we can create more enhanced plots by adjusting various arguments and using some new functions.

So far, we have mostly only used the base graphics functions such as plot(), but in this chapter, we have recipes that use other graph libraries such as lattice and ggplot2, which offer more advanced control over graphs. It is possible to create these advanced graphs using the base library too, but the additional libraries give us ways to achieve the same results with less code and often produce better-looking graphs with the least amount of effort.

A lot of new functions will be introduced in this chapter. It is a good practice to look up the help file whenever you encounter a new function. For example, to look up the help file for the plot() function, you can type ?plot or help(plot) in the R command prompt.

As the recipes in this chapter are slightly more advanced than the earlier chapters, you may require some practice with multiple datasets before you are comfortable with using all the functions. Example datasets are used in each recipe, but it is highly recommended that you also work with your own datasets and modify the recipes to suit your own analysis.

主站蜘蛛池模板: 湛江市| 泉州市| 渝中区| 金川县| 车致| 玉龙| 天全县| 道真| 万山特区| 平乡县| 台东市| 奎屯市| 寿阳县| 武川县| 新竹县| 奎屯市| 商丘市| 阿拉善右旗| 房山区| 澎湖县| 阳东县| 彩票| 威海市| 沿河| 新安县| 开远市| 左权县| 焦作市| 南澳县| 洛扎县| 大同县| 安福县| 壤塘县| 韶关市| 新兴县| 加查县| 亚东县| 中卫市| 突泉县| 大安市| 长丰县|