Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

xyPoint-class

Class "xyPoint": A class to represent a X/Y coordinate.


Description

This class is used to describe a coordinate in 2-dimensional (X/Y) space

Objects from the Class

Objects can be created by calls of the form new("xyPoint", ...).

Slots

x:

Object of class "numeric" The x coordinate

y:

Object of class "numeric" The y coordinate

Methods

getX

Returns the value stored in the x slot

getY

Returns the value stored in the y slot

getPoints

Returns a vector of two numerical values representing the x and y positions

show

Display information about the object in a concise fashion

Author(s)

Jeff Gentry

Examples

z <- new("xyPoint", x=150, y=30)
   z
   getPoints(z)

   getX(z)
   getY(z)

Rgraphviz

Provides plotting capabilities for R graph objects

v2.34.0
EPL
Authors
Kasper Daniel Hansen [cre, aut], Jeff Gentry [aut], Li Long [aut], Robert Gentleman [aut], Seth Falcon [aut], Florian Hahne [aut], Deepayan Sarkar [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.