Skip to content

P161: vp4, vp5 两行代码似有误 #3

@aoyh

Description

@aoyh

P161
第六行 vp4 <- viewport(x = 1, y = 1, just = c('top', 'right'))
第八行 vp5 <- viewport(x = 0, y = 0, just = c('top', 'right'))

报错 Error in valid.charjust(just) : invalid horizontal justification

just的第一个参数对应水平,第二参数对应垂直。水平是左右,垂直是上下。

似乎应将两个参数对调,改为:

vp4 <- viewport(x = 1, y = 1, just = c("right", "top"))
vp5 <- viewport(x = 0, y = 0, just = c("right", "bottom"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions