[R] plotting

yoooooo magno_yu at ml.com
Wed Sep 5 14:58:41 CEST 2007


This looks like exactly what i want!! Thanks!



Jim Lemon-2 wrote:
> 
> yoooooo wrote:
>> Hi, let's say I have data
>> 
>> x = c(1, 2, 10, 12)
>> y = c(100, -20, 50, 25)
>> 
>> if I go plot(x, y), then the default x-axis range goes from 1 to 12. Is
>> there a way to change it so that the axis looks like:
>> 
>> ----|-----|-----|-----|----
>>      1       2       10     12
>> 
>> This doesn't seem reasonable but let's say I want to plot intraday graph
>> with axis.POSIXct, my data is only from 8:30 to 4 every day and I have
>> these
>> data for days.. i don't want to see a straight line every night.. Is
>> there a
>> way I can do this? 
>> 
> Hi yoooooo,
> Have you looked at gap.plot (plotrix)?
> 
> Jim
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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/plotting-tf4361709.html#a12497565
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list