#7665: Make support for R graphics
-----------------------------------+----------------------------------------
Reporter: kcrisman | Owner: was
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.3.3
Component: graphics | Keywords: plot, R, graphics, statistics
Author: Karl-Dieter Crisman | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
Changes (by newvalueoldvalue):
* cc: drkirkby (added)
* status: new => needs_review
* author: => Karl-Dieter Crisman
Old description:
> This is probably hard. It would increase our potential user base,
> though, as well as make it possible for people to use Sage in virtually
> any college course very easily (with the exception of most geometry
> courses, but a Geogebra plugin would do that).
>
> Examples from the recommended (not currently installed) MASS package; one
> can certainly come up with one's own examples, this just shows what isn't
> supported and the current error messages.
> {{{
> sage: r.bwplot('MPG.highway ~ Origin', data = 'Cars93')
>
> Warning message:
> In grid.newpage() : No png support in this version of R
>
> sage: r.histogram('~ MPG.highway',data='Cars93')
>
> (process:46382): Pango-WARNING **: failed to create cairo scaled font,
> expect ugly output. the offending font is 'Helvetica 9'
>
> (process:46382): Pango-WARNING **: font_font status is: out of memory
>
> (process:46382): Pango-WARNING **: scaled_font status is: out of memory
>
> (process:46382): Pango-WARNING **: shaping failure, expect ugly output.
> shape-engine='BasicEngineFc', font='Helvetica 9', text='M'
>
> (process:46382): Pango-WARNING **: failed to create cairo scaled font,
> expect ugly output. the offending font is 'Helvetica 7.1982421875'
>
> (process:46382): Pango-WARNING **: font_font status is: out of memory
>
> (process:46382): Pango-WARNING **: scaled_font status is: out of memory
>
> (process:46382): Pango-WARNING **: shaping failure, expect ugly output.
> shape-engine='BasicEngineFc', font='Helvetica 7.1982421875', text='0'
>
> sage: r.plot('MPG.highway ~ Weight', data='Cars93')
> NULL
> }}}
New description:
This is probably hard. It would increase our potential user base, though,
as well as make it possible for people to use Sage in virtually any
college course very easily (with the exception of most geometry courses,
but a Geogebra plugin would do that).
Examples from the recommended (not currently installed) MASS package; one
can certainly come up with one's own examples, this just shows what isn't
supported and the current error messages.
{{{
sage: r.library('MASS')
sage: r.library('lattice')
sage: r.bwplot('MPG.highway ~ Origin', data = 'Cars93')
Warning message:
In grid.newpage() : No png support in this version of R
sage: r.histogram('~ MPG.highway',data='Cars93')
(process:46382): Pango-WARNING **: failed to create cairo scaled font,
expect ugly output. the offending font is 'Helvetica 9'
(process:46382): Pango-WARNING **: font_font status is: out of memory
(process:46382): Pango-WARNING **: scaled_font status is: out of memory
(process:46382): Pango-WARNING **: shaping failure, expect ugly output.
shape-engine='BasicEngineFc', font='Helvetica 9', text='M'
(process:46382): Pango-WARNING **: failed to create cairo scaled font,
expect ugly output. the offending font is 'Helvetica 7.1982421875'
(process:46382): Pango-WARNING **: font_font status is: out of memory
(process:46382): Pango-WARNING **: scaled_font status is: out of memory
(process:46382): Pango-WARNING **: shaping failure, expect ugly output.
shape-engine='BasicEngineFc', font='Helvetica 7.1982421875', text='0'
sage: r.plot('MPG.highway ~ Weight', data='Cars93')
NULL
}}}
--
Comment:
With the attached patch and
[http://sage.math.washington.edu/home/kcrisman/r-2.10.1.p0.spkg|this
spkg], ''basic'' plotting should work on both OSX and Linux (if X11 is
available). This should be tested on OSX 10.4, 10.5, preferably also a
64-bit build on 10.5 and 10.6, and then on a few Linux variants and at
least the most recent Solaris (to make sure I haven't broken something).
The functioning of things like bwplot and histogram (which need the
lattice package, which we now ship) is more iffy in the notebook, though
it seems to work well enough (though apparently delayed by one, perhaps
due to not calling dev.off()?) in the command line. However, I think that
dealing with this could legitimately be made a separate ticket; just
getting r.plot to work across the board is pretty important.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7665#comment:6>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.