<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Statistical Graphics &#38; Data Visualization &#187; piramida</title>
	<atom:link href="http://enciety.com/community/R/tag/piramida/feed/" rel="self" type="application/rss+xml" />
	<link>http://enciety.com/community/R</link>
	<description>Innovation and New Experimentation Model with R</description>
	<lastBuildDate>Fri, 21 May 2010 03:44:06 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>R Script : Membuat Piramida Penduduk</title>
		<link>http://enciety.com/community/R/2005/04/27/r-script-membuat-piramida-penduduk/</link>
		<comments>http://enciety.com/community/R/2005/04/27/r-script-membuat-piramida-penduduk/#comments</comments>
		<pubDate>Wed, 27 Apr 2005 10:04:14 +0000</pubDate>
		<dc:creator>Unung Istopo</dc:creator>
				<category><![CDATA[R Scripts]]></category>
		<category><![CDATA[piramida]]></category>

		<guid isPermaLink="false">http://10.20.32.11/wordpress/?p=17</guid>
		<description><![CDATA[###         Piramida Penduduk
###         Oleh : Unung Istopo
###         Enciety Business Consult
###         www.enciety.com
###         22 Juli 2004  [...]]]></description>
			<content:encoded><![CDATA[<p>###         Piramida Penduduk<br />
###         Oleh : Unung Istopo<br />
###         Enciety Business Consult<br />
###         www.enciety.com<br />
###         22 Juli 2004                          </p>
<p>require(gridBase)</p>
<p><em><font color=&quot;gray&quot;><br />
# This script from : http://www.r-project.org/misc/acpclust.R</font></em><br />
ltitle &lt;- function(x,backcolor=&quot;darkgreen&quot;,<br />
forecolor=&quot;yellow&quot;,cex=2,ypos=0.4){<br />
plot(x=c(-1,1),y=c(0,1),xlim=c(0,1),ylim=c(0,1),type=&quot;n&quot;,axes=FALSE)<br />
polygon(x=c(-1,-1,1,1),y=c(-1,1,1,-1),col=backcolor,border=NA)<br />
text(x=0,y=ypos,pos=4,cex=cex,labels=x,col=forecolor)<br />
}</p>
<p></p>
<p><em><font color=&quot;gray&quot;><br />
### Contoh Data</font></em><br />
data &lt;-<br />
c(100,110,115,250,350,458,500,567,789,876,600,556,500,465,350,250,145)</p>
<p>data.axes &lt;- c(0,200,400,600,800)</p>
<p><em><font color=&quot;gray&quot;><br />
### Kelompok Umur</font></em><br />
label &lt;- c(&quot;0 &#8211; 4&quot;, &quot;5 &#8211; 9&quot;, &quot;10 &#8211; 14&quot;, &quot;15 &#8211; 19&quot;, &quot;20 &#8211; 24&quot;, &quot;24 &#8211; 29&quot;,&quot;30 &#8211; 34&quot;, &quot;35 &#8211; 39&quot;, &quot;40 &#8211; 44&quot;, &quot;44 &#8211; 49&quot;, &quot;50 &#8211; 54&quot;, &quot;55 &#8211; 59&quot;, &quot;60 &#8211; 64&quot;,&quot;65 &#8211; 69&quot;, &quot;70 &#8211; 74&quot;, &quot;75 &#8211; 79&quot;, &quot;80+&quot;)</p>
<p>
mylayout=layout(matrix(c(1,1,2,3,4,5),ncol=2,byrow=T),widths=c(1/2,1/2),<br />
heights=c(lcm(1),lcm(1),1))</p>
<p><em><font color=&quot;gray&quot;><br />
# Judul Atas</font></em><br />
par(mar = c(0.1, 0.8, 0.1, 0.1))<br />
ltitle(paste(&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
R Enciety &#8211; Piramida Penduduk&quot;),cex=1.6,ypos=0.4)</p>
<p><em><font color=&quot;gray&quot;><br />
# Judul Atas Kiri &#8211; Male</font></em><br />
par(mar = c(0.1, 0.8, 0.1, 2))<br />
ltitle(paste(&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
Laki-Laki&quot;),cex=1.6,ypos=0.4,backcolor=&quot;white&quot;,<br />
forecolor=&quot;darkgreen&quot;)</p>
<p><em><font color=&quot;gray&quot;><br />
# Judul Atas Kanan &#8211; Female</font></em><br />
par(mar = c(0.1, 0.8, 0.1, 0.5))<br />
ltitle(paste(&quot;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />
Perempuan&quot;),cex=1.6,ypos=0.4,backcolor=&quot;white&quot;,<br />
forecolor=&quot;darkgreen&quot;)</p>
<p><em><font color=&quot;gray&quot;><br />
### Plot Data Bagian Kiri</font></em><br />
par(mar = c(5,1.5,1.5,5))<br />
midpts &lt;- barplot(-data,axes=F,horiz=T,col=&quot;blue&quot;,xlab=&quot;(dalam<br />
ribu)&quot;)</p>
<p>axis(1,at=-data.axes,labels=FALSE)</p>
<p><em><font color=&quot;gray&quot;><br />
# This script from R-News Vol 3/2, October 2003 by Paul Murrell <br />
&quot;Integrating grid Graphics output with Base Graphics Output&quot;.<br />
</font></em><br />
vps &lt;- baseViewports()<br />
par(new=TRUE)<br />
push.viewport(vps$inner,vps$figure,vps$plot)<br />
grid.text(c(as.character(data.axes)),x=unit(-data.axes,&quot;native&quot;),<br />
y=unit(-1,&quot;lines&quot;),rot=0)<br />
pop.viewport(3)<br />
par(new=FALSE)</p>
<p><em><font color=&quot;gray&quot;><br />
### Plot Data Bagian Kanan<br /></font></em><br />
par(mar = c(5,2,1.5,4))<br />
midpts &lt;- barplot(data,axes=F,horiz=T,col=&quot;orange&quot;,xlab=&quot;(dalam<br />
ribu)&quot;)</p>
<p>axis(2,at=midpts,labels=FALSE,col=&quot;white&quot;)<br />
axis(1,at=data.axes,labels=FALSE)</p>
<p><em><font color=&quot;gray&quot;><br />
# This script from R-News Vol 3/2, October 2003 by <br />
Paul Murrell &quot;Integrating grid Graphics output with Base Graphics<br />
Output&quot;.<br /></font></em><br />
<br />
vps &lt;- baseViewports()<br />
par(new=TRUE)<br />
push.viewport(vps$inner,vps$figure,vps$plot)<br />
grid.text(c(as.character(data.axes)),x=unit(data.axes,&quot;native&quot;),<br />
y=unit(-1,&quot;lines&quot;),rot=0)<br />
pop.viewport(3)</p>
<p>vps &lt;- baseViewports()<br />
par(new=TRUE)<br />
push.viewport(vps$inner,vps$figure,vps$plot)<br />
grid.text(c(as.character(label)),y=unit(midpts,&quot;native&quot;),<br />
x=unit(-2,&quot;lines&quot;),rot=0)<br />
pop.viewport(3)</p>
<p>par(new=FALSE)</p>
<p><em>Grafik yang dihasilkan adalah sebagai berikut :</em><br />
<img src='http://enciety.com/community/R/wp-content/piramida.png' alt='' /></p>
<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fenciety.com%2Fcommunity%2FR%2F2005%2F04%2F27%2Fr-script-membuat-piramida-penduduk%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:25px;margin-top:5px;"></iframe>]]></content:encoded>
			<wfw:commentRss>http://enciety.com/community/R/2005/04/27/r-script-membuat-piramida-penduduk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
