R: How should I create Grid-graphics?

前端 未结 2 632
执念已碎
执念已碎 2020-12-10 23:05

Goal

\"enter

Code



        
2条回答
  •  情话喂你
    2020-12-10 23:47

    MR. in #R recommened to use just one type of plot -things. Trellis -functions are not interchangeable with the base functions so one should also reprogram the syntax for things such as trend-line and titles. Otherwise, you create syntantic confusing over time and consistency to dogs.

    I am trying to find out alternative ways of doing Grid-graphics so the writing in progress.

    Different ways of creating Grid-graphics

    1. Trellis -way of doing things, using lattice -pkg, code here

    enter image description here

    2. Combining different plot -pkgs

    MR. discouraged this way but rcs's way of doing it here. According to MR, grid is "much more user friendly way of creating grid grapics", so I think it is worth learning, and things such as lattice and ggplot2 are built on top of grid. Please, consult this paper about combining base -plotting-functions and the grid -plotting-functions here.

提交回复
热议问题