Home | Trees | Index | Help |
---|
Package dataplot :: Package R :: Class Plot |
|
object
--+ |GenericPlot
--+ | Plot
barplot
,
Histogram
,
multi_time_series
,
NormalQQPlot
,
Scatter
,
ThereAndBackPlot
,
TimeSeries
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.Method Summary | |
---|---|
Infer default values at init. | |
Go through files looking for the plot function. | |
get_data_file(self)
| |
Try to get the R function from the r environment. | |
get_test_file(self)
| |
Start a PDF device and execute R plotting code. | |
Save result of call to get_plot_args in Rdata. | |
set_r_args(self)
| |
Source R code files looking for fun_name. | |
Inherited from GenericPlot | |
| |
Convert from PDF to other formats using ImageMagick. | |
Change group write perms if requested. | |
| |
| |
| |
Dig through settings.INSTALLED_APPS for full paths. | |
Return dictionary of image filenames. | |
| |
Gather input data from defaults and return value of tocall. | |
Return dictionary of image URLs. | |
Make subdirectories of media/ for this plot. | |
Make initial file and conversions. | |
Generalized form of url/filename reporting. | |
Render a HTML template with self as context 'plot'. | |
Render the PNG image and link to the PDF. | |
Render the PNG without link to PDF. | |
Render the PNG thumb. | |
Use some other program to look at rendered source image. | |
Inherited from object | |
x.__delattr__('name') <==> del x.name | |
x.__getattribute__('name') <==> x.name | |
x.__hash__() <==> hash(x) | |
T.__new__(S, ...) -> a new object with type S, a subtype of T | |
helper for pickle | |
helper for pickle | |
x.__setattr__('name', value) <==> x.name = value | |
x.__str__() <==> str(x) |
Class Variable Summary | |
---|---|
str |
convert_from = 'pdf'
|
dict |
convert_to = {'pdf': {'suffix': '.pdf'}, 'thumb': {'conv...
|
float |
h = 6.5 |
str |
view_program = 'xpdf'
|
int |
w = 9 |
Inherited from GenericPlot | |
bool |
autosave = False
|
NoneType |
chgrp = None |
str |
convert_binary = 'convert'
|
bool |
enable_caching = False
|
Method Details |
---|
__init__(self,
*args,
**kwargs)
Infer default values at init.
|
check_files_for_function(self)Go through files looking for the plot function. |
get_r_fun(self, e=None)Try to get the R function from the r environment. Returns true if it worked. |
makefile(self)Start a PDF device and execute R plotting code. Also executes the conversion to other formats. |
save_data(self)Save result of call to get_plot_args in Rdata. |
source_for_function(self)Source R code files looking for fun_name. Raise error if fun_name is never found. |
Class Variable Details |
---|
convert_from
|
convert_to
|
h
|
view_program
|
w
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 2.1 on Tue Apr 29 23:35:17 2008 | http://epydoc.sf.net |