dataplot::R::__init__::Plot Class Reference

Inheritance diagram for dataplot::R::__init__::Plot:

dataplot::R::__init__::barplot dataplot::R::__init__::Histogram dataplot::R::__init__::multi_time_series dataplot::R::__init__::NormalQQPlot dataplot::R::__init__::Scatter dataplot::R::__init__::TimeSeries dataplot::R::__init__::SquareScatter dataplot::R::__init__::CorrScatter List of all members.

Public Member Functions

def get_data_file
def get_test_file
def get_r_fun
def __init__
def check_files_for_function
def source_for_function
def save_data
def set_r_args
def makefile

Public Attributes

 r_args

Static Public Attributes

dictionary convert_to
string convert_from = 'pdf'
int w = 9
float h = 6.5
string view_program = 'xpdf'

Detailed Description

R plot for the web.

Uses the rpy package and base R graphics. The idea is separation
of R and python code, so each subclass needs to map to an R
function (r_fun_name) in a .R code file (r_code_filename) that can
be sourced and used for plotting by rpy.

Definition at line 27 of file __init__.py.


Member Function Documentation

def dataplot::R::__init__::Plot::__init__   self,
  args,
  kwargs
 

Infer default values at init.

Definition at line 59 of file __init__.py.

def dataplot::R::__init__::Plot::check_files_for_function   self  ) 
 

Go through files looking for the plot function.

Definition at line 69 of file __init__.py.

def dataplot::R::__init__::Plot::get_data_file   self  ) 
 

Definition at line 40 of file __init__.py.

def dataplot::R::__init__::Plot::get_r_fun   self,
  e = None
 

Try to get the R function from the r environment.

Returns true if it worked.

Definition at line 46 of file __init__.py.

def dataplot::R::__init__::Plot::get_test_file   self  ) 
 

Definition at line 43 of file __init__.py.

def dataplot::R::__init__::Plot::makefile   self  ) 
 

Start a PDF device and execute R plotting code.

Also executes the conversion to other formats.

Definition at line 137 of file __init__.py.

def dataplot::R::__init__::Plot::save_data   self  ) 
 

Save result of call to get_plot_args in Rdata.

Definition at line 106 of file __init__.py.

def dataplot::R::__init__::Plot::set_r_args   self  ) 
 

Definition at line 133 of file __init__.py.

def dataplot::R::__init__::Plot::source_for_function   self  ) 
 

Source R code files looking for fun_name.

Raise error if fun_name is never found.

Definition at line 90 of file __init__.py.


Member Data Documentation

string dataplot::R::__init__::Plot::convert_from = 'pdf' [static]
 

Definition at line 35 of file __init__.py.

dictionary dataplot::R::__init__::Plot::convert_to [static]
 

Initial value:

{
        'png':{'suffix':'.png'},
        'thumb':{'suffix':'-thumb.png','convert_args':'-resize 65x90'},
        'pdf':{'suffix':'.pdf'},
        }

Definition at line 30 of file __init__.py.

float dataplot::R::__init__::Plot::h = 6.5 [static]
 

Definition at line 37 of file __init__.py.

dataplot::R::__init__::Plot::r_args
 

Definition at line 134 of file __init__.py.

string dataplot::R::__init__::Plot::view_program = 'xpdf' [static]
 

Definition at line 38 of file __init__.py.

int dataplot::R::__init__::Plot::w = 9 [static]
 

Reimplemented in dataplot::R::__init__::SquareScatter.

Definition at line 36 of file __init__.py.


The documentation for this class was generated from the following file:
Generated on Tue Apr 22 23:16:23 2008 for django-dataplot by  doxygen 1.4.6