Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73394

Plot 1,2,...,N variables on the same graph

$
0
0
Hi,

I have the following dataset:
:
RI_gp    r0_3m_ACC    r0_3m_NOA    r0_3m_IVA    r0_3m_AG    r0_3m_CEI    r0_3m_NSI    r0_3m_O_SC    r0_3m_GP    r0_3m_ROA    r0_3m_BM
1    .0121191    .0187712    .0147924    .0103527    .0041432    .0115713    .021564    .0059549    .0044189    .0148028
2    .0187148    .0118012    .0052136    .0134285    .020173    .011597    .0180974    .0047232    .0067841    .0096458
3    .0060904    .0173207    .0345406    .0088647    .002872    .023115    .0256601    .0075369    .0126852    .0162281
4    .0146691    .0158295    .0201421    -.0027431    .0164007    .0026573    .0164814    .0015704    -.0021758    .0020926
5    .0060163    .0093637    .0100777    .0074968    -.007139    -.0059697    -.0020139    -.0054329    .0044707    .0044553
I would like to create a loop so that I can plot on the same graph the variables r0_3m_`i' on the y axis and the variable "RI_gp" on the x axis. The number of variables r0_3m_`i' will increase in the dataset. Can someone help with that? Thanks!



Viewing all articles
Browse latest Browse all 73394

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>