'@param: client_config (optional) passes configuration dict
through to the client-side map plugin.'

def __init__(self, env, year_min, year_max, place_table, client_config={}):

    try:
        import rpy2
        import rpy2.robjects as robjects
    except ImportError:
        import logging
        logging.getLogger().error('R    is    required    by    the    climate    data    portal    to    generate    charts\n\n                                To    install    R:    refer    to:\n                                http://cran.r-project.org/doc/manuals/R-admin.html\n\n\n                                rpy2    is    required    to    interact    with    python.\n\n                                To    install    rpy2,    refer    to:\n                                http://rpy.sourceforge.net/rpy2/doc-dev/html/overview.html\n                                ')
        raise
    self.env = env
    self.year_min = year_min
    self.year_max = year_max
    self.place_table = place_table
    self.robjects = robjects
    R = self.R = robjects.r
    env.DSL.init_R_interpreter(R, current.deployment_settings.database)
    self.client_config = client_config
