SAS中文论坛
标题:
Valentine's Day
[打印本页]
作者:
shiyiming
时间:
2012-2-13 23:46
标题:
Valentine's Day
From Dapangmao's blog on sas-analysis
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-RP2LWA0YgSQ/TzkiVS1s35I/AAAAAAAAA7A/B-PtnVks_OE/s1600/SGPlot19.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="333" src="http://1.bp.blogspot.com/-RP2LWA0YgSQ/TzkiVS1s35I/AAAAAAAAA7A/B-PtnVks_OE/s400/SGPlot19.png" width="400" /></a></div><br />
Happy Valentine's Day!<br />
<pre style="background-color: #ebebeb; border: 1px dashed rgb(153, 153, 153); color: #000001; font-size: 14px; line-height: 14px; overflow: auto; padding: 5px; width: 100%;"><code>
data one;
do t = 1 to 3*constant("pi") by 0.05;
x = 16*sin(t)**3;
y = 13*cos(t) - 5*cos(2*t) - 2*cos(3*t) - cos(4*t);
output;
end;
run;
data two;
set one;
if _n_ = 70 then label = "Valentine's Day";
run;
ods graphics on / width=6in height= 5in;
proc sgplot data = two;
series x = x y = y /lineattrs=(color=red thickness=5)
datalabel = label datalabelattrs=(color=red
family="garamond" style=italic size=45 weight= bold);
run;
</code></pre><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3256159328630041416-7387986527167570951?l=www.sasanalysis.com' alt='' /></div><img src="http://feeds.feedburner.com/~r/SasAnalysis/~4/kWd-iCdKF9o" height="1" width="1"/>
欢迎光临 SAS中文论坛 (http://mysas.net/forum/)
Powered by Discuz! X3.2