Not colour but symbols

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Not colour but symbols

Komine
Hi,
Instead to put colour in my histogram,
I want to put symbols like lines, dots etc.
Do you know the function that does it?
Thank you in advance
Reply | Threaded
Open this post in threaded view
|

Re: Not colour but symbols

Bert Gunter
Don't do this!

Google on "chartjunk" to learn why not.

-- Bert

On Tue, Mar 20, 2012 at 12:11 PM, Komine <[hidden email]> wrote:

> Hi,
> Instead to put colour in my histogram,
> I want to put symbols like lines, dots etc.
> Do you know the function that does it?
> Thank you in advance
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Not-colour-but-symbols-tp4490030p4490030.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Not colour but symbols

Thomas Lumley-2
However, you *can* do it in R.  For example, the function to draw
histograms filled with lines is hist().

   -thomas

On Wed, Mar 21, 2012 at 9:31 AM, Bert Gunter <[hidden email]> wrote:

> Don't do this!
>
> Google on "chartjunk" to learn why not.
>
> -- Bert
>
> On Tue, Mar 20, 2012 at 12:11 PM, Komine <[hidden email]> wrote:
>> Hi,
>> Instead to put colour in my histogram,
>> I want to put symbols like lines, dots etc.
>> Do you know the function that does it?
>> Thank you in advance
>>
>>
>> --
>> View this message in context: http://r.789695.n4.nabble.com/Not-colour-but-symbols-tp4490030p4490030.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> [hidden email] mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
>
> Bert Gunter
> Genentech Nonclinical Biostatistics
>
> Internal Contact Info:
> Phone: 467-7374
> Website:
> http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--
Thomas Lumley
Professor of Biostatistics
University of Auckland

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Not colour but symbols

Komine
Hi
Thank you Bert and Thomas for your help, I did what I wanted with this code.
>test<-c(4,8,9,6,7)
>barplot(test,density =20,angle=45)

But I want to cross the lines in each bar.
Please, how to do it?
Thank you in advance.
Reply | Threaded
Open this post in threaded view
|

Re: Not colour but symbols

PIKAL Petr
Hi

>
> Hi
> Thank you Bert and Thomas for your help, I did what I wanted with this
code.
> >test<-c(4,8,9,6,7)
> >barplot(test,density =20,angle=45)
>
> But I want to cross the lines in each bar.

Maybe there is some other option in some add-on package but you can simply
add a second barplot

barplot(test,density =20,angle=-45, add=TRUE)

Regards
Petr


> Please, how to do it?
> Thank you in advance.
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Not-colour-
> but-symbols-tp4490030p4491785.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Not colour but symbols

Komine
Thank Petr for your help. It do what I wanted also.