coords              package:colorspace              R Documentation

_E_x_t_r_a_c_t _t_h_e _n_u_m_e_r_i_c_a_l _c_o_o_r_d_i_n_a_t_e_s _o_f _a _c_o_l_o_r

_D_e_s_c_r_i_p_t_i_o_n:

     This function returns a matrix with three columns which give the
     coordinates of a color in its natural color space.

_U_s_a_g_e:

     coords(color)

_A_r_g_u_m_e_n_t_s:

   color: A color.

_V_a_l_u_e:

     A numeric matrix giving the coordinates of the color.

_A_u_t_h_o_r(_s):

     Ross Ihaka.

_S_e_e _A_l_s_o:

     'RGB', 'XYZ', 'LAB', 'polarLAB', 'LUV', 'polarLUV', 'mixcolor'.

_E_x_a_m_p_l_e_s:

     x = RGB(1, 0, 0)
     coords(as(x, "HSV"))

