Both from and to should be either numeric values
between 0 and 1, expressing a proportion of the line length,
or unit objects. In the latter case, the unit
is converted to a proportion of the line length, with "npc"
units treated as proportions of the line length.
Both from and to can be vectors (and they
are recycled) so that multiple subsets can be obtained in
a single call.
Both from and to
can be negative, in which case the value is treated as distance
backwards along the line from its end.
The result is a new grob. In the case of grid.trim,
this new grob will be drawn on the current device. In the special
case that x is a gPath, by default, the new grob will
replace the old grob (the original grob identified by x)
in the current scene
(and the new grob will use the same gp settings as the
old grob).