[BioC] simple ggplot

Sean Davis sdavis2 at mail.nih.gov
Fri Mar 29 13:09:07 CET 2013


On Fri, Mar 29, 2013 at 7:59 AM, R [guest] <guest at bioconductor.org> wrote:
>
> Hi, I want to plot the following type of table. x-axis should be from 0 to 8 and the y-axis should show the percentage-values for the corresponding x-value:
>
> Tags      Fraction
> 0       0.000000
> 1       0.653559
> 2       0.182030
> 3       0.084434
> 4       0.041063
> 5       0.019808
> 6       0.009256
> 7       0.004330
> 8       0.002007

This isn't a bioconductor question and ggplot2 has its own email list,
but to get you going, I suggest you take a look at the ggplot2
documentation:

http://docs.ggplot2.org/current/

Sean


>
>  -- output of sessionInfo():
>
>> sessionInfo()
> R version 2.15.3 (2013-03-01)
> Platform: x86_64-pc-linux-gnu (64-bit)
>
> locale:
>  [1] LC_CTYPE=nb_NO.UTF-8       LC_NUMERIC=C               LC_TIME=nb_NO.UTF-8
>  [4] LC_COLLATE=nb_NO.UTF-8     LC_MONETARY=nb_NO.UTF-8    LC_MESSAGES=nb_NO.UTF-8
>  [7] LC_PAPER=C                 LC_NAME=C                  LC_ADDRESS=C
> [10] LC_TELEPHONE=C             LC_MEASUREMENT=nb_NO.UTF-8 LC_IDENTIFICATION=C
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] scales_0.2.2         reshape2_1.2.1       ggplot2_0.9.2.1      DiffBind_1.4.2
> [5] Biobase_2.18.0       GenomicRanges_1.10.7 IRanges_1.16.4       BiocGenerics_0.4.0
> [9] BiocInstaller_1.8.3
>
> loaded via a namespace (and not attached):
>  [1] amap_0.8-7         colorspace_1.2-0   dichromat_1.2-4    digest_0.5.2
>  [5] edgeR_3.0.4        gdata_2.12.0       gplots_2.11.0      grid_2.15.3
>  [9] gtable_0.1.1       gtools_2.7.1       labeling_0.1       limma_3.14.1
> [13] MASS_7.3-22        memoise_0.1        munsell_0.4        parallel_2.15.3
> [17] plyr_1.7.1         proto_0.3-9.2      RColorBrewer_1.0-5 stats4_2.15.3
> [21] stringr_0.6.1      tools_2.15.3       zlibbioc_1.4.0
>
> --
> Sent via the guest posting facility at bioconductor.org.
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor



More information about the Bioconductor mailing list