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

Introduction

In this chapter, you will learn about some of the simplest yet most important settings and parameters of graphs in R base graphics. Learning how to adjust colors, sizes, margins, and styles of various graph elements such as points, lines, bars, axes, and titles will give us the ability to improve upon the basic graph commands you learned in Chapter 1, R Graphics.

In the previous chapter, we got a glimpse of the different types of graphs that can be created in R using small snippets of code. Now, you will learn how to modify the fundamental building blocks of these graphs to better suit our needs.

The R base library has very powerful graphical capabilities. While you can produce pretty much any type of graph with a couple of lines of code, the default layout and look of the graph is often very basic. Sometimes, you might run into problems such as axis labels and titles getting chopped off at the edges or the legend size or position masking part of your graph. Sometimes, the default color combinations might not be suitable for presentation or publication.

In this chapter, we will go through the relevant names and accepted values of different arguments and arguments to graph functions. We will take a closer look at the par() function, which we briefly introduced in the previous chapter.

Reading and trying out all the recipes in this chapter is highly recommended as it will give you a very good hands-on grasp of certain aspects of graph manipulation, which you are likely to use a lot in any visual analysis in R.

Let's get started!

主站蜘蛛池模板: 福贡县| 武功县| 金山区| 锡林郭勒盟| 鹿邑县| 中方县| 嘉鱼县| 巩义市| 肥东县| 龙海市| 定兴县| 彩票| 微山县| 沛县| 建平县| 屯门区| 潼南县| 马山县| 九台市| 上蔡县| 丰都县| 南木林县| 静安区| 盈江县| 滨州市| 古蔺县| 乌兰察布市| 苏尼特右旗| 北宁市| 射洪县| 贵德县| 永春县| 卢氏县| 女性| 潞西市| 西宁市| 陈巴尔虎旗| 乌兰县| 洛南县| 台南县| 巴里|