Re: [R] hist function+label second y-axis

From: canadiangirl19 <canadiangirl19_at_sms.at>
Date: Fri, 21 Mar 2008 03:20:26 -0700 (PDT)

with the plot function I get the timeseries, I want a histogram but as a line and no bars.
plot(x$LAN_3,type="h")

I solved the second problem with:
mtext("Differenzwerte",side=3,line=3)
mtext("Häufigkeit (diff Werte)",side=4) but get a new little problem: If I set line=3 at the axis=4 R did not show the label, because there is not enough space, so I decided to omit this comand, now it looks a little bit squeezed.

Jim Lemon-2 wrote:
>
> canadiangirl19 wrote:

>> Dear Forum,
>> 
>> hist(x$LAN_3,col="green",xaxt='n',yaxt='n',xlab="",ylab="",main="",type="l")
>> I´d like to craete a line not a bar in the hist function, but regrettably
>> I
>> get only warning messages:
>> 1: Grafikparameter "type" ist veraltet in: title(main, sub, xlab, ylab,
>> line, outer, ...) 
>> 2: Grafikparameter "type" ist veraltet in: axis(side, at, labels, tick,
>> line, pos, outer, font, lty, lwd,  
>> 3: Grafikparameter "type" ist veraltet in: axis(side, at, labels, tick,
>> line, pos, outer, font, lty, lwd, 
>> 

> Maybe you want to use "plot" with type="h"
>
>> My second problem is, I´ve created a second y-axis, but I´m not able to
>> label this second axis, I try it with:
>> axis(3,x$LAN_3,xlab="whatever") but nothing happend.
>> 

> First thing is that the second y-axis is numbered 4. Second is that you
> will probably have to leave a bit more space with
>
> par(mar=c(5,4,4,4))
>
> in order to fit your axis label.
>
> Jim
>
> ______________________________________________
> R-help_at_r-project.org 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.
>
>
-- 
View this message in context: http://www.nabble.com/hist-function%2Blabel-second-y-axis-tp16194939p16196144.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_r-project.org 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.
Received on Fri 21 Mar 2008 - 10:53:54 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 21 Mar 2008 - 13:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive