Belated day11

Day 10-11 / 11 finished school exploratory week2 content, mainly to learn some basic usage ggplot2, and some special usage records as follows:

  1. Some common attribute names
    Here Insert Picture Description
  2. In the color attribute, a value to be fixed as a specific color definition, be double quotes; to do with diversity factor, the variable names and the like so direct color factor in different colors will be generated automatically.
    Here Insert Picture DescriptionHere Insert Picture Description
  3. Outlier the processing and display
    of different base system, ggplot2 when there are Outliers with, automatically include all the points, resulting in a display portion mainly the conventional. No solution to this problem, using the following two methods, the first is not displayed directly outlier point information, and the second is to reduce the total display range.
    a. directly limit range ylim (-3,3), at this time point directly outlier omitted
    b. coord_cartesian (ylim = c ( -3,3), the base directly reach the same effect range limitation.

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/qq_43198462/article/details/84039119