Skip to content
Prev 12696 / 63461 Next

problems with plot.formula

In R-1.8.1, I could work around the problem because the plot.formula
function is directly executable because it is exported from the graphics
package:

         _                   
platform sparc-sun-solaris2.8
arch     sparc               
os       solaris2.8          
system   sparc, solaris2.8   
status   Patched             
major    1                   
minor    8.1                 
year     2004                
month    02                  
day      05                  
language R
[1] plot.HoltWinters*   plot.POSIXct        plot.POSIXlt       
 [4] plot.TukeyHSD       plot.acf*           plot.data.frame    
 [7] plot.decomposed.ts* plot.default        plot.dendrogram*   
[10] plot.density        plot.factor         plot.formula       
                                             ^^^^^^^^^^^^
[13] plot.function       plot.hclust*        plot.histogram     
[16] plot.isoreg*        plot.lm             plot.mlm           
[19] plot.ppr*           plot.prcomp*        plot.princomp*     
[22] plot.profile.nls*   plot.spec           plot.spec.coherency
[25] plot.spec.phase     plot.stl*           plot.table         
[28] plot.ts             plot.tskernel*     

    Non-visible functions are asterisked
function (x, from = 0, to = 1, xlim = NULL, ...) 
{
    if (!is.null(xlim)) {
...


While in R-1.9.x the plot.formula function is not exported:
_                   
platform sparc-sun-solaris2.8
arch     sparc               
os       solaris2.8          
system   sparc, solaris2.8   
status                       
major    1                   
minor    9.0                 
year     2004                
month    04                  
day      12                  
language R
[1] plot.Date*          plot.HoltWinters*   plot.POSIXct*      
 [4] plot.POSIXlt*       plot.TukeyHSD       plot.acf*          
 [7] plot.data.frame*    plot.decomposed.ts* plot.default       
[10] plot.dendrogram*    plot.density        plot.ecdf          
[13] plot.factor*        plot.formula*       plot.hclust*       
[16] plot.histogram*     plot.isoreg*        plot.lm            
[19] plot.medpolish*     plot.mlm            plot.ppr*          
[22] plot.prcomp*        plot.princomp*      plot.profile.nls*  
[25] plot.spec           plot.spec.coherency plot.spec.phase    
[28] plot.stepfun        plot.stl*           plot.table*        
[31] plot.ts             plot.tskernel*     

    Non-visible functions are asterisked
Error: Object "plot.formula" not found
No, actually it is not:
Error: 'plot.formula' is not an exported object from 'namespace:graphics'
The problem is that plot.formula is not exported, so I cannot dispatch
directly to it.  (This is what I did previously).

-Greg
LEGAL NOTICE\ Unless expressly stated otherwise, this messag...{{dropped}}