bubbles                package:FLCore                R Documentation

_B_u_b_b_l_e_s _p_l_o_t

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

     This method plots three dimensional data like matrices by age and
     year or age-class, very common in fisheries. The bubbles are
     proportional to the values on the matrix. Note that 'bubbles'
     accept an argument 'bub.scale' to control the relative size of the
     bubbles. Positive and negative values have separate colours.

_G_e_n_e_r_i_c _f_u_n_c_t_i_o_n:

     bubbles(x, data)

_M_e_t_h_o_d_s:


      _s_i_g_n_a_t_u_r_e(_x=_f_o_r_m_u_l_a, _d_a_t_a=_F_L_Q_u_a_n_t) : Produce bubbles plot of the
          object.

      _s_i_g_n_a_t_u_r_e(_x=_f_o_r_m_u_l_a, _d_a_t_a=_F_L_Q_u_a_n_t_s) : Produce a lattice of
          bubbles plot of the objects. Commonly used to plot residuals
          of VPA assessments.

      _s_i_g_n_a_t_u_r_e(_x=_f_o_r_m_u_l_a, _d_a_t_a=_F_L_C_o_h_o_r_t) : Produce bubbles plot of the
          object.

      _s_i_g_n_a_t_u_r_e(_x=_f_o_r_m_u_l_a, _d_a_t_a=_d_a_t_a._f_r_a_m_e) : Produce bubbles plot of
          the object.

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

     The FLR Team

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

     lattice, 'FLQuant-class', 'FLQuants-class','FLCohort-class'

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

     data(ple4)
     bubbles(age~year, data=catch.n(ple4))
     bubbles(age~year, data=catch.n(ple4), bub.scale=5)
     bubbles(age~cohort, data=FLCohort(catch.n(ple4)), bub.scale=5)

     qt01 <- log(catch.n(ple4)+1)
     qt02 <- qt01+rnorm(length(qt01))
     flqs <- FLQuants(qt01=qt01, qt02=qt02)
     bubbles(age~year|qname, data=flqs, bub.scale=1)

     qt03 <- FLQuant(rnorm(100),dimnames=list(age=as.character(1:10),year=as.character(1:10)))
     bubbles(age~year, data=qt03, bub.scale=7, col=c("black","red"))

