On Thu, 24 Jan 2008, elyakhlifi mustapha wrote:

> hello,
> to display my histogram from a png file to a html file I use this syntax
>
>> myplot2 <- png(file=file.path(directory,"myplot2.png"), bg="transparent")

Please re-read ?png: myplot2 will be NULL.

>> plot(1:10)
>> rect(1, 5, 3, 7, col="white")
>> dev.off()
> png:C:/Documents and Settings/melyakhlifi/Bureau/myplot.png
>                                                          2
>> HTMLInsertGraph(myplot2,file=HTMLoutput,caption="Sample discrete 
>> distribution plot")
> [1] TRUE
>
> but when I open HTMLoutput I don't find my histogram.

This must be in some package you haven't mentioned (R2HTML?) and which is 
not giving an error message when passed NULL as the first argument.  Try 
passing it file.path(directory,"myplot2.png").

>       [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Please follow this request.

-- 
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
  • [R] png to html elyakhlifi mustapha
    • Re: [R] png to html Prof Brian Ripley

Reply via email to