Learn R Programming

RGtk2 (version 2.20.31)

cairoTranslate: cairoTranslate

Description

Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx, ty). This offset is interpreted as a user-space coordinate according to the CTM in place before the new call to cairoTranslate. In other words, the translation of the user-space origin takes place after any existing transformation.

Usage

cairoTranslate(cr, tx, ty)

Arguments

cr
[Cairo] a cairo context
tx
[numeric] amount to translate in the X direction
ty
[numeric] amount to translate in the Y direction