Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: Writing graphs to the log file


From   Neil Shephard <nshephard@nhs.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Writing graphs to the log file
Date   Thu, 13 Nov 2008 10:46:44 +0000

sdm1 wrote:
> How do I write graphs to the log or smcl file?
>
>   
As others have pointed out you don't, not directly at least.

However, if you know a little html you can hack things together using
-log2html- to convert your smcl log-file to html and include the saved
graphs (exported as png) in-line with the rest of your log.

I remember doing this in the past, but for some reason also remember
having some problems with -log2html- parsing html written in a do-file
(and hence echoed in the smcl log), but I'm quite busy today so don't
have time to check this out.

For more info on -log2html- see -ssc desc log2html-

Neil

-- 
"We should make things as simple as possible, but not simpler" - Anon (not Albert Einstein)


***********************************************************************
This  message  may  contain  confidential and  privileged  information.
If you  are not the  intended recipient  you should not  disclose, copy
or distribute information in this e-mail or take any action in reliance
on its contents.  To do so is strictly  prohibited and may be unlawful.
Please  inform  the  sender that  this  message has  gone astray before
deleting it.  Thank you.

2008 marks the 60th anniversary of the NHS.  It's an opportunity to pay
tribute to the NHS staff and volunteers who help shape the service, and
celebrate their achievements.

If you work for the NHS  and  would like  an NHSmail  email account, go
to: www.connectingforhealth.nhs.uk/nhsmail
***********************************************************************

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index