[R] Need Assistance in Stacked Area plot

Kishorenalluri kishorenalluri.au at gmail.com
Wed Feb 16 15:41:16 CET 2011


Dear All,

I need the assistance to plot the staked area plot using ggplot2

What i am expecting is to plot in X-axis the time(Shown in column1) from
range of 0 to 100 seconds, and in the y axis the stable increment in area in
both directions (less than and greater than zero) for columns 3, 4, 5 (
Column1, Column2, column3). The example as follows
        TIME              concentration           Column1                       
Column2               Column3            
        0.0000     0.00000000E+00    0.00000000E+00    0.00000000E+00   
0.00000000E+00
        0.0000     0.00000000E+00    1.06339151E-16   -1.45858050E-21  
-5.91725566E-19
        0.0000     5.38792107E-16    1.02157781E-17   -1.64419026E-20  
-7.66233765E-19
        1.0000     2.59545931E-15    3.42126227E-18   -1.98776066E-20  
-3.72669548E-19
        1.0000     2.91310885E-15    2.81003039E-18   -1.91286265E-20  
-2.38608440E-19
        2.0000     3.07852570E-15    2.50631096E-18   -1.81194864E-20  
-1.86739453E-19
        3.0000     3.23261641E-15   -5.56403736E-16   -1.77552840E-20  
-1.70484122E-19
        3.0000     3.35382008E-15    1.54158070E-17   -2.34217089E-20  
-2.07658923E-19
        4.0000     3.82413183E-15   -9.70815457E-13    0.00000000E+00  
-6.79571364E-19
        4.0000     5.95542983E-15    6.80013097E-16   -4.50874919E-19  
-2.66777428E-19
        5.0000     4.39175250E-14    2.47867332E-15   -1.01608288E-18  
-9.76030255E-19
        6.0000     1.38894685E-13    5.61681417E-15   -3.93770327E-18  
-3.49248490E-18
        6.0000     3.68692195E-13    1.16035253E-14   -1.41445363E-17  
-1.22159013E-17
        7.0000     8.73269040E-13    1.79082686E-14   -3.66076039E-17  
-2.95735768E-17
        7.0000     1.76597984E-12    2.12332352E-14   -6.62184833E-17  
-4.70513477E-17
        8.0000     2.95030081E-12    2.25656057E-14   -9.60506242E-17  
-5.97356578E-17
        9.0000     4.26108735E-12    1.34254419E-14   -1.25090653E-16  
-6.95633425E-17
        9.0000     5.63056757E-12    2.32612717E-14   -1.53348074E-16  
-8.54969359E-17
       10.0000     7.01928856E-12    2.31851800E-14   -1.82546609E-16  
-1.02043519E-16
       10.0000     8.39638583E-12    2.31701226E-14   -2.11755800E-16  
-1.18810066E-16
       11.0000     9.76834605E-12   -5.45647674E-13   -2.40796726E-16  
-1.35796249E-16
       12.0000     1.11376775E-11   -9.78639513E-13   -2.69731656E-16  
-1.53027433E-16
       12.0000     1.25059438E-11    2.32773795E-14   -2.98461854E-16  
-1.70614303E-16
       13.0000     1.38742114E-11    2.33364991E-14   -3.27081730E-16  
-1.88394094E-16
       13.0000     1.52430947E-11    2.33958407E-14   -3.55573728E-16  
-2.06350128E-16
       14.0000     1.66127832E-11    2.34487161E-14   -3.83935678E-16  
-2.24396442E-16
       15.0000     1.79830524E-11    2.34906687E-14   -4.12155560E-16  
-2.42441983E-16
       15.0000     1.93533963E-11    2.26377072E-14   -4.39950727E-16  
-2.90534988E-16
       16.0000     2.06980593E-11    2.17171727E-14   -4.70446135E-16  
-3.56228328E-16
       16.0000     2.19820310E-11    1.87207801E-14   -4.98853596E-16  
-4.46861939E-16
       17.0000     2.32023004E-11    1.94966974E-14   -5.22695187E-16  
-5.78943073E-16
       18.0000     2.43484124E-11    1.78879137E-14   -5.38143362E-16  
-7.87629728E-16
       18.0000     2.54003017E-11    3.09723082E-11   -5.36126990E-16  
-1.16329436E-15
       19.0000     2.63149519E-11    9.87861573E-15   -4.79610661E-16  
-2.06287085E-15
       19.0000     2.69770178E-11   -8.01983206E-14   -6.65787469E-17  
-3.62969106E-15
       20.0000     2.50814500E-11    1.40265746E-09   -4.91364111E-17  
-3.37932814E-15
       21.0000     2.23899790E-11   -1.55489960E-14   -4.45522315E-17  
-3.35597818E-15
       21.0000     2.09705026E-11   -1.20672358E-14   -5.22849137E-17  
-3.35854728E-15
       22.0000     1.99397498E-11   -1.67958460E-14   -6.01502858E-17  
-3.24838081E-15
       22.0000     1.91117367E-11   -1.08397245E-14   -6.67337987E-17  
-3.01352774E-15
       23.0000     1.84409696E-11   -3.92677717E-15   -7.10576594E-17  
-2.67668939E-15
       24.0000     1.78951028E-11   -2.97739441E-15   -7.26367637E-17  
-2.28204667E-15
       24.0000     1.74505303E-11   -2.59241020E-15   -7.15967013E-17  
-1.88057466E-15
       25.0000     1.70886909E-11   -2.22676101E-11   -6.90344927E-17  
-1.51430500E-15
       25.0000     1.67938004E-11   -2.43300435E-15   -6.45959094E-17  
-1.20480757E-15
       26.0000     1.65527898E-11   -2.00735751E-15   -6.04828745E-17  
-9.62120866E-16
       27.0000     1.63547265E-11   -1.67859253E-15   -5.68950146E-17  
-7.80733120E-16
       27.0000     1.61904094E-11   -1.41262089E-15   -5.41786960E-17  
-6.51168814E-16
       28.0000     1.60527139E-11   -2.49439678E-12   -5.23952425E-17  
-5.62375603E-16
       28.0000     1.59360400E-11    2.62881626E-10   -5.15606096E-17  
-5.03612687E-16
       29.0000     1.58357080E-11   -8.39976609E-16   -5.14627740E-17  
-4.67073407E-16
       30.0000     1.57487181E-11    7.36369431E-15   -5.19812743E-17  
-4.46291152E-16
       30.0000     1.56725920E-11   -5.71921386E-16   -5.29436236E-17  
-4.35810611E-16
       31.0000     1.56049374E-11   -1.29934166E-16   -5.42457684E-17  
-4.32716131E-16
       31.0000     1.55446938E-11   -3.43595054E-16   -5.57744988E-17  
-4.34248987E-16
       32.0000     1.54903914E-11   -2.94159045E-16   -5.74554757E-17  
-4.38745732E-16
       33.0000     1.54409912E-11   -2.20172318E-16   -5.92363954E-17  
-4.45141520E-16
       33.0000     1.53956941E-11   -1.60024131E-16   -6.10807479E-17  
-4.52739383E-16
       34.0000     1.53538388E-11   -1.04664335E-16   -6.29624575E-17  
-4.61090543E-16
       34.0000     1.53148883E-11   -5.62589216E-17   -6.48627530E-17  
-4.69902295E-16
       35.0000     1.52784032E-11   -1.44725572E-17   -6.67674202E-17  
-4.78980038E-16
       36.0000     1.52440114E-11    2.51373260E-17   -6.86658886E-17  
-4.88193071E-16
       36.0000     1.52113996E-11    5.83712591E-17   -7.05492717E-17  
-4.97450107E-16
       37.0000     1.51802989E-11    9.01710240E-17   -7.24106480E-17  
-5.06685519E-16
       37.0000     1.51504801E-11    1.18707722E-16   -7.42438276E-17  
-5.15849940E-16
       38.0000     1.51217472E-11    1.42357253E-16   -7.60434812E-17  
-5.24904060E-16
       39.0000     1.50939307E-11    1.65367168E-16   -7.78047061E-17  
-5.33815582E-16
       39.0000     1.50668851E-11    1.86055897E-16   -7.95234618E-17  
-5.42556942E-16
       40.0000     1.50404851E-11    2.04412370E-16   -8.11957685E-17  
-5.51104535E-16
       40.0000     1.50146232E-11    2.21235137E-16   -8.28181922E-17  
-5.59437213E-16
       41.0000     1.49892055E-11    2.37103104E-16   -8.43879399E-17  
-5.67537290E-16
       42.0000     1.49641532E-11    2.50312236E-16   -8.59025969E-17  
-5.75389192E-16
       42.0000     1.49393980E-11    2.62921358E-16   -8.73598931E-17  
-5.82979936E-16
       43.0000     1.49148815E-11    2.75389332E-16   -8.87584297E-17  
-5.90298384E-16
       43.0000     1.48905524E-11    2.85455102E-16   -9.00969614E-17  
-5.97336555E-16
       44.0000     1.48663683E-11    2.94662415E-16   -9.13747090E-17  
-6.04088149E-16
       45.0000     1.48422928E-11    3.03564228E-16   -9.25914416E-17  
-6.10549074E-16
       45.0000     1.48182943E-11    3.10165151E-16   -9.25956080E-17  
-6.10568004E-16
       45.0000     1.48182157E-11    2.87903730E-14   -1.23263328E-16  
-7.06901207E-16
       46.0000     1.51265980E-11    1.19856767E-13   -1.91134750E-16  
-1.26222219E-15
       46.0000     1.80774925E-11    9.34862622E-15   -6.36801098E-16  
-2.06531679E-15
       47.0000     2.39301099E-11    1.50413607E-13   -5.17225422E-16  
-9.34494008E-16
       48.0000     2.44966342E-11    7.98976133E-15   -4.57701131E-16  
-5.75359039E-16
       48.0000     2.51779974E-11    1.45579739E-14   -4.84516361E-16  
-4.57838484E-16
       49.0000     2.59395207E-11    1.64772747E-14   -5.32107285E-16  
-4.00780885E-16
       49.0000     2.68159435E-11    1.78662237E-14   -5.68396691E-16  
-3.55308146E-16
       50.0000     2.77937100E-11    1.06825797E-13   -5.89265068E-16  
-3.17609377E-16
       51.0000     2.88393046E-11    1.17353165E-13   -6.02991754E-16  
-2.89334453E-16
       51.0000     2.99331318E-11    1.94816408E-14   -6.03032918E-16  
-2.89254511E-16
       51.0000     2.99368496E-11    1.92960656E-14   -6.16976534E-16  
-2.93687249E-16
       52.0000     3.10473428E-11    1.91959689E-14   -6.36047467E-16  
-3.02303308E-16
       52.0000     3.21459919E-11    1.91752676E-14   -6.55373818E-16  
-3.12585533E-16
       53.0000     3.32395765E-11    1.91944034E-14   -6.74628483E-16  
-3.23846167E-16
       54.0000     3.43315140E-11    1.92338638E-14   -6.93803470E-16  
-3.35694160E-16
       54.0000     3.54234813E-11    1.92814401E-14   -7.12904609E-16  
-3.47846011E-16
       55.0000     3.65162691E-11    1.93294732E-14   -7.31934825E-16  
-3.60113705E-16
       55.0000     3.76101058E-11    1.93738175E-14   -7.50885687E-16  
-3.72378803E-16
       56.0000     3.87048332E-11    1.94125318E-14   -7.69751540E-16  
-3.84572010E-16
       57.0000     3.98001631E-11    1.94447800E-14   -7.88524828E-16  
-3.96650602E-16
       57.0000     4.08957355E-11    1.94448763E-14   -7.88587334E-16  
-3.96690596E-16
       57.0000     4.08993874E-11    1.86768670E-14   -8.09420751E-16  
-4.56049359E-16
       58.0000     4.19711907E-11    1.78777007E-14   -8.35796695E-16  
-5.40409685E-16
       58.0000     4.29885032E-11    4.16425595E-12   -8.59978873E-16  
-6.59810997E-16
       59.0000     4.39494036E-11    1.60444982E-14   -8.78606298E-16  
-8.37324772E-16
       60.0000     4.48458783E-11    1.47294748E-14   -8.85088635E-16  
-1.12249868E-15
       60.0000     4.56602968E-11    1.26238185E-14   -8.63013783E-16  
-1.64822853E-15
       61.0000     4.63529233E-11    7.65026850E-15   -7.55499793E-16  
-3.02203884E-15
       61.0000     4.68104284E-11   -1.15921864E-09   -1.15922420E-16  
-5.44835374E-15
       62.0000     4.30509259E-11    2.29991461E-09   -9.23968563E-17  
-5.05678149E-15
       63.0000     3.82422935E-11   -2.92425086E-14   -9.51878102E-17  
-5.06587475E-15
       63.0000     3.56818006E-11   -2.98680077E-14   -9.51912629E-17  
-5.06836286E-15
       63.0000     3.56747899E-11   -6.65548097E-14   -1.22035132E-16  
-5.10852703E-15
       64.0000     3.38130184E-11   -1.72384506E-14   -1.49388594E-16  
-4.95097623E-15
       64.0000     3.23188036E-11   -7.34266292E-10   -1.46854213E-16  
-4.55248060E-15
       65.0000     3.11133856E-11   -7.86529677E-10   -1.57306769E-16  
-4.01132261E-15
       66.0000     3.01377496E-11   -8.26639327E-15   -2.00933298E-16  
-3.35019374E-15
       66.0000     2.93483421E-11   -5.49550227E-11   -1.97848607E-16  
-2.72591415E-15
       67.0000     2.87091808E-11   -5.20009254E-15   -1.93206212E-16  
-2.19370922E-15
       67.0000     2.81893941E-11   -4.65486107E-15   -1.82902608E-16  
-1.78436841E-15
       68.0000     2.77644963E-11   -3.74781998E-15   -1.72829789E-16  
-1.48929207E-15
       69.0000     2.74139918E-11   -3.05249741E-15   -1.64759581E-16  
-1.28622889E-15
       69.0000     2.71215142E-11   -2.49602538E-15   -1.59252730E-16  
-1.15209969E-15
       70.0000     2.68748215E-11   -2.04475116E-15   -1.56116249E-16  
-1.06690618E-15
       70.0000     2.66645244E-11   -1.65430726E-15   -1.54805633E-16  
-1.01452441E-15
       71.0000     2.64828518E-11   -1.32983804E-15   -1.54847963E-16  
-9.84671282E-16
       72.0000     2.63249734E-11    1.51371998E-14   -1.55761922E-16  
-9.69255478E-16
       72.0000     2.61865021E-11    1.92549813E-15   -1.57180488E-16  
-9.62708762E-16
       73.0000     2.60636277E-11   -4.67555428E-16   -1.58872690E-16  
-9.61865181E-16
       73.0000     2.59543540E-11   -4.49018764E-16   -1.60663359E-16  
-9.64285189E-16
       74.0000     2.58562513E-11   -3.06169930E-16   -1.62451994E-16  
-9.68512885E-16
       75.0000     2.57673673E-11   -1.74058376E-16   -1.64181749E-16  
-9.73693075E-16
       75.0000     2.56862296E-11   -5.62978757E-17   -1.65821460E-16  
-9.79306974E-16
       76.0000     2.56116748E-11    4.14919112E-17   -1.67355376E-16  
-9.85037794E-16
       76.0000     2.55427308E-11    1.22934585E-16   -1.68778081E-16  
-9.90696329E-16
       77.0000     2.54785853E-11    1.92081200E-16   -1.70089633E-16  
-9.96172367E-16
       78.0000     2.54185507E-11    2.55648995E-16   -1.71293783E-16  
-1.00140512E-15
       78.0000     2.53620452E-11    3.08194867E-16   -1.72395742E-16  
-1.00636486E-15
       79.0000     2.53085746E-11    5.14010425E-14   -1.73402887E-16  
-1.01104468E-15
       79.0000     2.52576882E-11    3.88791934E-14   -1.74322756E-16  
-1.01544829E-15
       80.0000     2.52090134E-11    2.95100041E-14   -1.75158921E-16  
-1.01957457E-15
       81.0000     2.51623050E-11    2.24722243E-14   -1.75917937E-16  
-1.02343477E-15
       81.0000     2.51172951E-11    1.95663706E-13   -1.76606302E-16  
-1.02704557E-15
       82.0000     2.50737346E-11   -1.92434572E-12   -1.77150916E-16  
-1.03036364E-15
       82.0000     2.50314456E-11    1.01694981E-14   -1.77789961E-16  
-1.03356582E-15
       83.0000     2.49902606E-11    7.88589330E-15   -1.78294856E-16  
-1.03650263E-15
       84.0000     2.49500326E-11    6.15909628E-15   -1.78748308E-16  
-1.03924496E-15
       84.0000     2.49106224E-11    4.84152066E-15   -1.79154814E-16  
-1.04180807E-15
       85.0000     2.48719154E-11    5.93531566E-16   -1.79518228E-16  
-1.04420575E-15
       85.0000     2.48338119E-11    6.03580632E-16   -1.79841700E-16  
-1.04644842E-15
       86.0000     2.47962312E-11    6.13419914E-16   -1.80128307E-16  
-1.04854673E-15
       87.0000     2.47591065E-11    6.21491472E-16   -1.80381011E-16  
-1.05051228E-15
       87.0000     2.47223702E-11    3.57014031E-14   -2.25437144E-16  
-1.18528814E-15
       88.0000     2.52341675E-11    1.97702081E-13   -3.13735709E-16  
-1.96638991E-15
       88.0000     3.01054266E-11   -4.91118782E-10   -9.33133244E-16  
-3.04496111E-15
       89.0000     4.12537886E-11   -1.16715830E-13   -8.31925307E-16  
-1.24780480E-15
       90.0000     4.16942573E-11    1.07467050E-14   -7.50089662E-16  
-7.39056578E-16
       90.0000     4.22247179E-11    2.13442819E-12   -7.55804496E-16  
-5.61414574E-16
       91.0000     4.28128278E-11    1.31477255E-14   -7.82502649E-16  
-4.72436541E-16
       91.0000     4.34857720E-11    1.42732463E-14   -8.02884464E-16  
-4.11270636E-16
       92.0000     4.42356648E-11    1.43293181E-13   -8.11850508E-16  
-3.65448422E-16
       93.0000     4.50483557E-11    1.59587727E-14   -8.15002023E-16  
-3.31376867E-16
       93.0000     4.59131612E-11    1.58892749E-14   -8.21103034E-16  
-3.32999086E-16
       94.0000     4.68005852E-11    1.58769363E-14   -8.33658983E-16  
-3.39362177E-16
       94.0000     4.76833558E-11    1.59259291E-14   -8.46544739E-16  
-3.47788031E-16
       95.0000     4.85662699E-11    1.60044879E-14   -8.59464637E-16  
-3.57363073E-16
       96.0000     4.94518747E-11    1.60955462E-14   -8.72431478E-16  
-3.67506792E-16
       96.0000     5.03412926E-11    1.61898006E-14   -8.85431219E-16  
-3.77899661E-16
       97.0000     5.12349621E-11    1.62809654E-14   -8.98462821E-16  
-3.88334069E-16
       97.0000     5.21329384E-11    1.63664506E-14   -9.11511951E-16  
-3.98699039E-16
       98.0000     5.30347881E-11    1.64450760E-14   -9.24570790E-16  
-4.08935990E-16
       99.0000     5.39401296E-11    1.65164719E-14   -9.37630234E-16  
-4.19014716E-16
       99.0000     5.48485441E-11    1.58580147E-14   -9.55259645E-16  
-4.78528305E-16
      100.0000     5.57373818E-11    1.51681295E-14   -9.79753327E-16  
-5.63684233E-16
      100.0000     5.65788258E-11    1.44374346E-14   -1.00275925E-15  
-6.85072232E-16
     
-- 
View this message in context: http://r.789695.n4.nabble.com/Need-Assistance-in-Stacked-Area-plot-tp3308953p3308953.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list