SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 598|回复: 0
打印 上一主题 下一主题

Valentine's Day

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2012-2-13 23:46:51 | 只看该作者

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"/>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-5-7 02:30 , Processed in 0.083897 second(s), 22 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表