Quantcast

how to add the sample number in the hist figure

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

how to add the sample number in the hist figure

Jie TANG-3
hi,R-users:
Now I plot some data with the name(aveobsdata) in column , How can I add
the
some number(e,g. the sample number) in each of the column?
plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt
= "n")
axis(1, at = 1:nums, label = name)


--

______________________________________________
[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
|  
Report Content as Inappropriate
star

Re: how to add the sample number in the hist figure

PIKAL Petr
Hi
>
> hi,R-users:
> Now I plot some data with the name(aveobsdata) in column , How can I add
> the
> some number(e,g. the sample number) in each of the column?
> plot
>
(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt
> = "n")

We do not have aveobsdata hence we can not try your code. You probably
shall try

?text

function
Something like

text(xccord, ycoord, some number, ...)

Regards
Petr


> axis(1, at = 1:nums, label = name)
>
>
> --
> ______________________________________________
> [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
|  
Report Content as Inappropriate
star

Re: how to add the sample number in the hist figure

Jim Lemon
In reply to this post by Jie TANG-3
On 06/29/2012 05:06 PM, Jie Tang wrote:
> hi,R-users:
> Now I plot some data with the name(aveobsdata) in column , How can I add
> the
> some number(e,g. the sample number) in each of the column?
> plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt
> = "n")
> axis(1, at = 1:nums, label = name)
>
Hi Jie,
Have a look at the examples in "boxed.labels" and "thigmophobe.labels"
in the plotrix package.

Jim

______________________________________________
[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
|  
Report Content as Inappropriate
star

Re: how to add the sample number in the hist figure

arun kirshna
In reply to this post by Jie TANG-3
Hi,

Try ?text()
A.K.



----- Original Message -----
From: Jie Tang <[hidden email]>
To: [hidden email]
Cc:
Sent: Friday, June 29, 2012 3:06 AM
Subject: [R] how to add the sample number in the hist figure

hi,R-users:
Now I plot some data with the name(aveobsdata) in column , How can I add
the
some number(e,g. the sample number) in each of the column?
plot(aveobsdata,type='h',lwd=line_width,col=line_col,main=titleinfo,xlab=xxlab,ylab=yylab,xaxt
= "n")
axis(1, at = 1:nums, label = name)


--

______________________________________________
[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.
Loading...