dataplot.R
index
/home/thocking/dataplot/docs/htdocs/pydoc/dataplot/R/__init__.py

Plots using R base graphics code and the rpy backend.

 
Package Contents
       

 
Classes
       
dataplot.GenericPlot(__builtin__.object)
Plot
Histogram
NormalQQPlot
Scatter
SquareScatter
CorrScatter
TimeSeries
barplot
multi_time_series
rpy.RPy_Exception(exceptions.Exception)
RFunctionDoesNotExist

 
class CorrScatter(SquareScatter)
    Scatterplot used to judge correlation between 2 variables.
 
Same as Scatter but with one.to.one=T and lty.x.y=2.
 
 
Method resolution order:
CorrScatter
SquareScatter
Scatter
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
default_kwargs = {'lty.x.y': 2, 'one.to.one': True}

Data and other attributes inherited from SquareScatter:
h = 6.5
w = 6.5

Data and other attributes inherited from Scatter:
default_args_map = {'xlab': 'x', 'ylab': 'y'}
r_fun_name = 'generic.scatter.plot'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
view_program = 'xpdf'

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class Histogram(Plot)
    generic histogram for showing a univariate distribution.
 
Arguments passed verbatim to R base function hist.
 
 
Method resolution order:
Histogram
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
r_fun_name = 'hist'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class NormalQQPlot(Plot)
    Use to see if univariate data are approximately normal.
 
All arguments are passed verbatim to R base function qqnorm.
 
 
Method resolution order:
NormalQQPlot
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
r_fun_name = 'generic.qqnorm'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class Plot(dataplot.GenericPlot)
    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 resolution order:
Plot
dataplot.GenericPlot
__builtin__.object

Methods defined here:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes defined here:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class RFunctionDoesNotExist(rpy.RPy_Exception)
    
Method resolution order:
RFunctionDoesNotExist
rpy.RPy_Exception
exceptions.Exception

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)

 
class Scatter(Plot)
    Simple x-y scatterplot.
 
Required:
x: list of ints or floats: horizontal values.
y: list of ints or floats: vertical values.
 
Optional:
ann: list of strings: labels for each data point.
pch: plotting symbol to use; see R>example(points).
fit.lty: lty of least squares fit line, default: 0 => no line.
axis.round: decimal points for rounding axis labels.
lty.x.y: lty of line at x=y, default: 0 => no line.
one.to.one: Force axes to be same?
 
 
Method resolution order:
Scatter
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
default_args_map = {'xlab': 'x', 'ylab': 'y'}
r_fun_name = 'generic.scatter.plot'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class SquareScatter(Scatter)
    
Method resolution order:
SquareScatter
Scatter
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
h = 6.5
w = 6.5

Data and other attributes inherited from Scatter:
default_args_map = {'xlab': 'x', 'ylab': 'y'}
r_fun_name = 'generic.scatter.plot'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
view_program = 'xpdf'

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class TimeSeries(Plot)
    Simple cumulative time series.
 
Required:
d: list of time data producted with strftime('%s')
 
Optional:
y: values at time points. Will assume 1 for each as default.
transform: how to transform the data before plotting, one of:
  'cumulative', 'monthly', 'daily'
 
 
Method resolution order:
TimeSeries
Plot
dataplot.GenericPlot
__builtin__.object

Data and other attributes defined here:
default_args_map = {'xlab': 'd', 'ylab': 'y'}
r_fun_name = 'generic.time.series'

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class barplot(Plot)
    Standard boring barplot.
 
 
Method resolution order:
barplot
Plot
dataplot.GenericPlot
__builtin__.object

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
class multi_time_series(Plot)
    Multiple time series superimposed for comparison.
 
 
Method resolution order:
multi_time_series
Plot
dataplot.GenericPlot
__builtin__.object

Methods inherited from Plot:
__init__(self, *args, **kwargs)
Infer default values at init.
check_files_for_function(self)
Go through files looking for the plot function.
get_data_file(self)
get_r_fun(self, e=None)
Try to get the R function from the r environment.
 
Returns true if it worked.
get_test_file(self)
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.
set_r_args(self)
source_for_function(self)
Source R code files looking for fun_name.
 
Raise error if fun_name is never found.

Data and other attributes inherited from Plot:
convert_from = 'pdf'
convert_to = {'pdf': {'suffix': '.pdf'}, 'png': {'suffix': '.png'}, 'thumb': {'convert_args': '-resize 65x90', 'suffix': '-thumb.png'}}
h = 6.5
view_program = 'xpdf'
w = 9

Methods inherited from dataplot.GenericPlot:
__repr__(self)
convert(self)
Convert from PDF to other formats using ImageMagick.
do_chgrp(self)
Change group write perms if requested.
 
This is useful if your testing and production webservers have
different users but share the same media directory.
do_chgrp_on(self, fn)
from_filename(self)
from_url(self)
get_app_dirs(self)
Dig through settings.INSTALLED_APPS for full paths.
get_filenames(self)
Return dictionary of image filenames.
get_full_base(self)
get_plot_args(self)
Gather input data from defaults and return value of tocall.
 
1. defaults for this plot type
2. returned arguments from get_plot_args
get_urls(self)
Return dictionary of image URLs.
 
Make the plot if it doesn't exist or caching is off.
makedirs(self)
Make subdirectories of media/ for this plot.
makefiles(self)
Make initial file and conversions.
 
makefile() just makes the initial file.
prefix(self, pre)
Generalized form of url/filename reporting.
 
pre: prefix to attach to the basename and suffix.
render_html(self, tfile)
Render a HTML template with self as context 'plot'.
to_html(self)
Render the PNG image and link to the PDF.
to_html_nolink(self)
Render the PNG without link to PDF.
to_html_thumb(self)
Render the PNG thumb.
view(self)
Use some other program to look at rendered source image.
 
Will make the source image if it does not exist yet.

Data and other attributes inherited from dataplot.GenericPlot:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'GenericPlot' objects>
list of weak references to the object (if defined)
autosave = False
chgrp = None
convert_binary = 'convert'
enable_caching = False

 
Functions
       
values_to_df(values)
Django values list of dicts -> R data.frame
 
This makes writing Django and R code easy, since querysets and
data.frames are the native ways of describing data tables in the
respective programming paradigms.

 
Data
        r = <R instance>