[R] Fwd: Need some assistance in plotting distributions
Vivek Das
vd4mmind at gmail.com
Tue Jul 8 10:30:59 CEST 2014
Dear Users,
I need some assistance in plotting some distribution enrichments, like I
have files with some frequency values, now I want to plot plot the
distribution of those frequencies for one sample and then on the same plot
I want to plot the next samples where the frequency comes from another
file. Can you tell me which command to use? I would like to see the
distribution both in curve and histrogram format. Even if the frequency are
not normally distributed I would like to see to what extent they are
distributed and how much they are deviated from the normal distribution.
However I would expect a Gaussian curve but due to the low frequency in
LG_freq it would be not evident. Can you share some snippets for that? Am
attaching the two files, can you please guide me how to do it, I tried with
the plot function but I was unable to do, I read somewhere it was possible
to do with plot function with type 'L' but am unable to do that. I would
need some assistance in this. Thanks
----------------------------------------------------------
Das
-------------- next part --------------
Position frequency
chr19_11942254 75
chr3_195511403 62.5
chr3_195508084 50
chr12_76424940 48.94
chr2_97268035 47.06
chr3_195507251 45.45
chr13_19751134 44.83
chr3_195511412 42.86
chr1_10689608 41.77
chr3_195515338 41.18
chr11_57958767 40.05
chr6_43308106 38.97
chr15_74427183 38.79
chr14_104643970 38.01
chr22_33670601 37.89
chr3_140277621 37.69
chr11_106680777 37.61
chrX_57146798 37.5
chrX_47086421 34.68
chr3_195511369 33.33
chr4_1087326 32.29
chr12_53069243 30.22
chr3_195511431 30
chr4_1087324 28.79
chr21_46012181 28.57
chr1_201179704 27.27
chr14_23371268 25.54
chr12_11506533 25
chr12_11506591 25
chr17_15457041 25
chr17_15457087 25
chr21_46012182 25
chr3_195511364 23.08
chr17_39305773 22.92
chr3_195507049 22.22
chr17_25973584 22.22
chr22_37964392 21.21
chr3_53263444 21.05
chr11_116719841 21.05
chr3_195507144 20
chr5_60628560 20
chr5_94991794 20
chr12_131359191 20
chr16_447262 20
chr17_39305774 20
chr17_39305769 19.64
chrX_44386604 19.05
chr13_48542810 18.18
chr21_46057625 17.81
chr2_61147615 17.65
chr12_7045912 17.56
chr17_39305760 17.54
chr17_39305761 16.95
chr1_17263165 16.67
chr5_146030285 16.67
chr6_31323226 16.67
chr11_637322 16.67
chrX_48675859 16.67
chr7_75028240 16.28
chr7_75028241 16.28
chr19_54973990 16.28
chr2_119604507 15.38
chr2_119604516 15.38
chr7_5352611 15.38
chr17_26089997 15.38
chr17_39305785 15.09
chr1_94495000 14.29
chr3_195512302 14.29
chr8_24811065 14.29
chr13_45008854 14.29
chrX_150349560 13.78
chr3_195509180 13.64
chr3_184039775 13.41
chr1_68960347 13.33
chr14_73978819 13.33
chr16_2228973 13.33
chr19_39401543 13.33
chr20_61460326 13.33
chr22_41721847 13.33
chr12_31250875 12.9
chr12_7045906 12.83
chr1_152082400 12.5
chr5_176886214 12.5
chr6_52664095 12.5
chr11_71276876 12.5
chr12_7045918 12.5
chr12_112037063 12.5
chr17_36666805 12.5
chr19_47249635 12.5
chr19_51919865 12.5
chr6_3751542 12.24
chr1_55167775 12.12
chr3_108829608 11.94
chr4_154506754 11.9
chr4_15690513 11.76
chr5_121515260 11.76
chr6_30711937 11.76
chr6_137365780 11.76
chr19_7927910 11.76
chr22_37964391 11.63
chr1_120479954 11.54
chrX_38145683 11.54
chr11_6411941 11.22
chr3_197880219 11.11
chr9_21367597 11.11
chr9_135947040 11.11
chr12_9083164 11.11
chr12_56666904 11.11
chr14_102550787 11.11
chr15_29418469 11.11
chr19_53770754 11.11
chrX_152967477 11.11
chr3_122284773 11.02
chr7_43679191 10.94
chr19_23159168 10.81
chr4_2263479 10.71
chr22_39358173 10.71
chr1_896173 10.53
chr1_152681679 10.53
chr1_196794685 10.53
chr1_206858647 10.53
chr2_119604501 10.53
chr4_1940235 10.53
chr4_110772956 10.53
chr6_44218787 10.53
chr11_18424472 10.53
chr14_64586208 10.53
chr19_16940257 10.53
chr1_152681695 10.48
chr21_46057634 10.47
chr6_151219997 10.34
chr6_107955970 10.08
chr1_248224586 10
chr1_248224587 10
chr2_119604688 10
chr9_135947042 10
chr19_40374025 10
chr20_3208503 10
chrX_150840056 10
chr22_37964389 9.78
chr6_112397545 9.76
chr19_40374023 9.76
chr17_73749982 9.68
chr12_53069229 9.66
chr19_36278848 9.62
chr1_3541668 9.52
chr2_241375390 9.52
chr8_38273487 9.52
chr11_73516094 9.52
chr16_1032172 9.52
chr16_28619615 9.52
chr17_80039228 9.52
chr22_38051445 9.52
chr22_37964408 9.45
chr3_197880204 9.38
chr9_124538672 9.38
chr18_32470282 9.3
chr13_19753704 9.23
chr1_203186947 9.09
chr4_13629164 9.09
chr4_17841298 9.09
chr4_101401073 9.09
chr4_170037774 9.09
chr5_76332530 9.09
chr9_32986009 9.09
chr14_55615321 9.09
chr16_30991325 9.09
chr17_78968823 9.09
chr19_14272414 9.09
chr1_152187437 9
chr6_166743049 8.93
chr1_91182180 8.89
chr9_130489354 8.82
chr17_47036073 8.82
chr17_6606350 8.75
chr8_133175742 8.74
chr4_57248712 8.7
chr6_34385300 8.7
chr7_2259002 8.7
chr8_145621579 8.7
chr9_131812242 8.7
chr10_50227779 8.7
chr10_118031512 8.7
chr10_135081469 8.7
chr15_42436820 8.7
chr17_16097870 8.7
chr17_37821636 8.7
chr19_34945172 8.7
chr19_55317437 8.7
chr22_37964387 8.7
chr12_130841616 8.57
chr19_20002820 8.51
chr11_1018382 8.45
chr19_17346702 8.42
chr1_152681696 8.33
chr8_134251333 8.33
chr9_7103690 8.33
chr10_51579199 8.33
chr17_4793831 8.33
chr17_4862841 8.33
chr19_18991121 8.33
chrX_152771461 8.22
chr1_152276598 8.16
chr8_142458157 8.16
chr1_28920394 8.11
chr3_195515460 8.11
chr4_17635330 8.11
chr19_39138514 8.11
chr12_76424952 8.02
chr1_12853629 8
chr3_195509606 8
chr5_174156448 8
chr6_13711629 8
chr9_13123252 8
chr10_15290649 8
chr10_23481993 8
chr15_56969830 8
chr19_4236994 8
chr19_33487128 8
chr22_38302504 8
chr7_1785413 7.97
chr12_7045900 7.95
chr5_78610466 7.89
chr5_137503717 7.89
chr17_36584794 7.89
chr12_6664485 7.87
chr7_149487483 7.84
chr16_31277200 7.84
chr17_27382098 7.81
chr7_138266466 7.79
chr1_25696990 7.69
chr1_156851274 7.69
chr1_185062192 7.69
chr1_208272311 7.69
chr3_113099810 7.69
chr3_140167368 7.69
chr3_187446275 7.69
chr7_151078680 7.69
chr7_151078686 7.69
chr8_42914267 7.69
chr9_115600852 7.69
chr14_23897864 7.69
chr16_57609382 7.69
chr16_84793023 7.69
chr17_7758397 7.69
chrX_47092601 7.69
chr4_1087328 7.63
chr15_65983337 7.56
chr6_39284209 7.55
chr11_562704 7.55
chr11_64567598 7.55
chr3_184039770 7.52
chr1_32193188 7.5
chr1_145295505 7.5
chr8_22436475 7.5
chr1_17295836 7.41
chr1_93300371 7.41
chr1_229677983 7.41
chr4_437494 7.41
chr4_3076749 7.41
chr5_133509682 7.41
chr8_95835780 7.41
chr12_112893769 7.41
chr14_97304131 7.41
chr19_46394391 7.41
chr19_58899571 7.41
chr20_62680268 7.41
chr21_48071719 7.41
chr22_39413947 7.41
chr5_43388474 7.32
chr11_55594723 7.32
chr11_123909529 7.32
chr13_21381681 7.32
chr15_44811380 7.32
chr17_3181890 7.32
chr4_79301135 7.27
chr13_53617369 7.27
chr11_120175847 7.25
chr19_613326 7.25
chr8_124350007 7.21
chr2_62066566 7.14
chr2_95942773 7.14
chr4_186064577 7.14
chr5_64956709 7.14
chr5_65310522 7.14
chr5_140051296 7.14
chr11_64121595 7.14
chr13_49794503 7.14
chr15_27193372 7.14
chr17_10248525 7.14
chr17_62496058 7.14
chr17_79097109 7.14
chr19_10654843 7.14
chr19_11918067 7.14
chr22_39136415 7.14
chrX_50085227 7.14
chr1_26671594 7.09
chr3_184039769 7.09
chr1_90048336 7.07
chr11_68478386 7.06
chr1_28271760 6.98
chr6_152527450 6.98
chr11_108332229 6.98
chr11_119187797 6.94
chr12_130185137 6.93
chr1_26671595 6.9
chr5_68665289 6.9
chr7_11630263 6.9
chr11_9025445 6.9
chr14_25100386 6.9
chr16_67763188 6.9
chr17_59534024 6.9
chr19_1074825 6.9
chr20_5987158 6.9
chr20_62190644 6.9
chr22_20749699 6.87
chr2_110372521 6.82
chr12_49691358 6.82
chr15_69347823 6.82
chr19_16640508 6.82
chr3_142840665 6.78
chr7_147600793 6.78
chr16_2147187 6.78
chr17_67286178 6.78
chr7_128865145 6.72
chr12_7045897 6.7
chr18_56204392 6.7
chr3_101576028 6.69
chr1_26662626 6.67
chr2_116510776 6.67
chr2_127811565 6.67
chr2_202402201 6.67
chr6_51918860 6.67
chr9_112811093 6.67
chr9_133951336 6.67
chr9_139934234 6.67
chr10_93784516 6.67
chr11_1643303 6.67
chr11_59382984 6.67
chr15_60748966 6.67
chr15_72492085 6.67
chr16_2141537 6.67
chr21_45711053 6.67
chrX_112022627 6.58
chr1_103381212 6.56
chr5_133702153 6.56
chr16_69221456 6.56
chr19_13888904 6.56
chr1_202880182 6.52
chr6_5771579 6.52
chr9_6604595 6.52
chr12_133351735 6.52
chr14_69558515 6.52
chr14_93408012 6.52
chr4_140811129 6.49
chr1_103461452 6.45
chr1_211477424 6.45
chr1_224371122 6.45
chr3_107799182 6.45
chr3_133302886 6.45
chr4_16513603 6.45
chr5_235351 6.45
chr5_59895072 6.45
chr5_132150036 6.45
chr5_137893653 6.45
chr6_46726496 6.45
chr6_111329263 6.45
chr9_114147617 6.45
chr10_17087182 6.45
chr10_88476505 6.45
chr11_1606381 6.45
chr12_80211203 6.45
chr12_124857020 6.45
chr14_93118237 6.45
chr17_26092624 6.45
chr17_40273220 6.45
chr18_63477195 6.45
chr21_46913427 6.45
chrX_118603929 6.45
chr8_52287292 6.38
chr12_121125264 6.38
chr11_6411936 6.37
chr3_14536359 6.35
chr7_102978252 6.35
chr9_79829247 6.35
chr12_25242704 6.35
chr15_44889041 6.35
chr22_19381969 6.35
chr19_4511395 6.33
chr14_69992716 6.32
chr18_56204393 6.32
chr6_111901465 6.31
chr1_15599019 6.25
chr1_115229393 6.25
chr1_162769606 6.25
chr2_167330356 6.25
chr6_33382887 6.25
chr9_136529136 6.25
chr9_139740797 6.25
chr12_123756143 6.25
chr13_33232422 6.25
chr14_74417145 6.25
chr14_76173360 6.25
chr16_1306815 6.25
chr19_4791966 6.25
chr19_43375937 6.25
chr19_51918849 6.25
chr7_56148932 6.15
chr12_124419938 6.15
chr22_37964413 6.14
chr3_100387829 6.12
chr11_1606372 6.12
chr17_34866734 6.12
chr22_45683265 6.12
chr17_3658411 6.09
chr1_153314241 6.06
chr1_197482049 6.06
chr1_205890902 6.06
chr2_38604295 6.06
chr3_62739264 6.06
chr7_56087369 6.06
chr7_63537819 6.06
chr8_101014589 6.06
chr9_2039768 6.06
chr9_137713953 6.06
chr11_1606367 6.06
chr11_60199927 6.06
chr11_119061117 6.06
chr12_71033058 6.06
chr12_113873162 6.06
chr14_39760248 6.06
chr15_42135978 6.06
chr15_78764102 6.06
chr16_69221462 6.06
chr19_23836509 6.06
chr19_51526465 6.06
chr19_53014735 6.06
chr20_2842771 6.06
chr11_12348765 6
chr11_62482776 6
chr17_9532094 6
chr11_94583391 5.97
chr1_186276430 5.88
chr1_231906731 5.88
chr2_32402654 5.88
chr2_233404481 5.88
chr7_44179454 5.88
chr8_120079656 5.88
chr11_65721195 5.88
chr12_117476983 5.88
chr14_69799888 5.88
chr14_94405461 5.88
chr15_62243173 5.88
chr16_3108202 5.88
chr16_50373917 5.88
chr22_39239850 5.88
chrX_89177334 5.88
chrX_133948845 5.88
chr9_19335017 5.83
chr5_138651825 5.8
chr7_44096378 5.8
chr15_40257979 5.8
chr1_40980776 5.78
chr4_44688714 5.77
chr11_133795834 5.77
chr16_2147451 5.77
chr18_43666168 5.77
chr11_6411966 5.75
chr16_19612993 5.75
chr1_202163137 5.71
chr1_226027561 5.71
chr2_152483650 5.71
chr2_220313949 5.71
chr2_232576108 5.71
chr3_48605318 5.71
chr3_186838994 5.71
chr4_96222790 5.71
chr5_74893761 5.71
chr6_149795442 5.71
chr7_100856141 5.71
chr8_126443178 5.71
chr11_47281470 5.71
chr11_113283602 5.71
chr17_7916479 5.71
chr17_36886629 5.71
chr17_48601139 5.71
chr17_67178330 5.71
chr19_18391886 5.71
chr19_24310449 5.71
chr19_50826473 5.71
chr21_46011569 5.71
chrX_99931136 5.71
chr17_38512376 5.68
chr1_145581206 5.66
chr12_21370118 5.66
chr18_2729382 5.66
chr1_186276166 5.63
chr2_43871858 5.63
chr16_57201044 5.63
chr1_52302059 5.56
chr1_204423810 5.56
chr3_27418337 5.56
chr3_195515459 5.56
chr6_27791948 5.56
chr6_31239775 5.56
chr7_135285679 5.56
chr10_27313443 5.56
chr10_69644686 5.56
chr10_124920070 5.56
chr12_111744725 5.56
chr12_111895062 5.56
chr13_78477730 5.56
chr15_76866550 5.56
chr16_18861275 5.56
chr17_49052156 5.56
chr19_19330123 5.56
chrX_70823544 5.56
chr22_37964419 5.51
chr2_210642074 5.48
chr3_113499918 5.48
chr17_10397704 5.48
chr5_137906749 5.45
chr6_50805773 5.45
chr15_58001174 5.45
chr15_63446256 5.45
chr15_68510953 5.45
chr19_15354117 5.45
chr4_5810032 5.44
chr1_16901184 5.41
chr1_31896614 5.41
chr1_156810866 5.41
chr1_228511297 5.41
chr2_8891632 5.41
chr2_103281630 5.41
chr4_55976929 5.41
chr5_179382669 5.41
chr9_95147922 5.41
chr9_117130733 5.41
chr9_136504999 5.41
chr10_52751393 5.41
chr15_91500394 5.41
chr15_101933617 5.41
chr18_43490485 5.41
chr18_77171450 5.41
chr19_290950 5.41
chr19_1754228 5.41
chr19_1979561 5.41
chr22_39710773 5.41
chr22_42033620 5.41
chrX_11779645 5.41
chrX_48689818 5.41
chr2_101185442 5.36
chr7_72754656 5.36
chrX_48837635 5.36
chr17_27380580 5.33
chrX_16870193 5.33
chr1_39945654 5.26
chr1_118426248 5.26
chr2_239186358 5.26
chr3_33260219 5.26
chr3_48573701 5.26
chr3_123166941 5.26
chr4_17838823 5.26
chr7_139229088 5.26
chr8_144451176 5.26
chr8_144671187 5.26
chr10_117824053 5.26
chr12_88479818 5.26
chr14_75386577 5.26
chr14_92403511 5.26
chr16_847744 5.26
chr16_70819662 5.26
chr19_16536056 5.26
chr19_45849009 5.26
chr20_6022716 5.26
chr20_45905096 5.26
chr22_45681947 5.26
chrX_23929956 5.26
chr7_28844114 5.23
chr1_45266265 5.19
chr2_31152327 5.19
chr2_179576710 5.19
chr4_88537258 5.19
chr5_1878736 5.19
chr8_87519310 5.19
chr3_8675389 5.17
chr5_118814536 5.17
chr7_140706308 5.17
chr15_28459327 5.17
chr15_71302292 5.17
chr16_85691005 5.17
chr19_54783206 5.17
chrX_24948634 5.17
chr9_95237069 5.16
chr4_88537322 5.15
chr11_1606369 5.15
chr1_15541927 5.13
chr1_152277262 5.13
chr1_176905484 5.13
chr4_68449410 5.13
chr4_81123829 5.13
chr4_124177180 5.13
chr5_148712421 5.13
chr6_84372085 5.13
chr7_76916888 5.13
chr7_103294652 5.13
chr8_82615287 5.13
chr8_126443492 5.13
chr9_133364742 5.13
chr11_3742047 5.13
chr18_19076652 5.13
chr19_36333036 5.13
chr19_47546115 5.13
chr22_21335314 5.13
chr22_45281390 5.13
chr1_236714227 5.1
chr19_45556358 5.1
chr21_46893880 5.1
chr2_74787291 5.08
chr11_16760337 5.08
chr13_42245084 5.08
chr17_65862662 5.08
chr1_201293671 5.06
chr2_61450409 5.06
chr5_177419761 5.06
chr11_47380524 5.06
chr16_417782 5.06
chr17_37374277 5.06
chrX_54496718 5.06
chrX_117119238 5.06
chrX_122830580 5.06
chr2_198621248 5.04
chr17_72863001 5.04
chr4_40337969 5.03
chr19_12878712 5.03
chr1_1231956 5
chr1_17265595 5
chr1_74506896 5
chr1_178861386 5
chr2_70162493 5
chr2_170463635 5
chr2_181925403 5
chr3_8607273 5
chr3_176752111 5
chr5_9379982 5
chr6_576786 5
chr6_43268964 5
chr6_127771491 5
chr8_109468115 5
chr9_842093 5
chr9_104375731 5
chr10_133946950 5
chr11_119185958 5
chr12_25362839 5
chr14_23816109 5
chr14_64489561 5
chr14_77229379 5
chr16_18861296 5
chr16_67692044 5
chr17_1546848 5
chr17_5042838 5
chr17_41477690 5
chr17_78765266 5
chr19_20727834 5
chr19_22271274 5
chr19_36359540 5
chr19_50104917 5
chr20_56227582 5
chr21_42752048 5
-------------- next part --------------
Position frequency
chr1_12907316 35.71
chr1_12907400 28
chr1_12907905 37.50
chr1_16918411 36.36
chr1_26608883 20.69
chr1_40323027 25
chr1_62675667 31.16
chr1_62675673 22.82
chr1_62675674 26.56
chr1_154294464 23.53
chr1_198663246 22.22
chr1_215820884 20
chr1_233463785 57.14
chr2_110342744 36.36
chr3_100105773 54.76
chr3_100170628 20.91
chr3_195511283 50
chr3_195511911 21.74
chr3_195511937 35.90
chr3_195511983 46.15
chr4_88536899 37.01
chr4_88536901 33.08
chr4_122732809 31.58
chr4_125591724 51.77
chr5_68830537 22.22
chr5_140235716 28.57
chr5_140502742 46.88
chr6_24302200 47.89
chr6_132031159 25
chr6_136590640 27.94
chr7_40118360 22.22
chr7_100677285 22.09
chr7_156802567 28.57
chr8_7218752 77.78
chr8_48736460 20.69
chr8_98788165 24.10
chr9_33799026 20.48
chr9_79843064 20
chr9_96438989 20
chr9_96438992 21.15
chr9_96438998 30.36
chr9_96439007 56.60
chr9_96439019 29.82
chr9_136597579 45.45
chr9_139368543 44.44
chr10_51768625 22.22
chr11_1017789 22.47
chr11_1018385 30.51
chr11_1606138 27.27
chr11_68133065 24
chr11_117789327 37.50
chr11_122928540 62.50
chr12_10588418 28.57
chr12_53298675 44.44
chr12_76424940 62.79
chr12_109017680 24.34
chr12_112036779 55.56
chr13_100623505 20
chr14_105416257 53.33
chr15_22743235 33.33
chr15_41482321 48.36
chr15_65412291 25
chr17_21319860 49.56
chr17_38788488 25
chr17_38975149 42.37
chr17_38975151 43.86
chr17_39262036 56.52
chr17_39262037 62.50
chr17_39305760 25
chr17_39305761 25
chr17_39305769 31.03
chr17_39305773 32.14
chr17_39305774 32.14
chr17_39305785 55.17
chr19_501695 20
chr19_2248179 25.37
chr19_4511598 23.04
chr19_4511599 23.39
chr19_12543963 28.57
chr19_13875711 22.22
chr19_18260134 25
chr19_22363689 43.75
chr19_34945216 20
chr19_47918022 54.05
chr19_53303182 26.09
chr19_56273293 52.94
chr21_36042478 41.67
chr21_45959447 28.12
chr22_30761993 57.45
chr22_46760432 58.75
chrX_69639610 41.88
chrX_118603742 29.17
chrX_118603747 31.03
chrX_118603773 37.50
More information about the R-help
mailing list