Hi Gundala,

If you want your plotting axes to appear in colour,

try

par(fg = "red") # will colour all foreground stuff in red, including the
axes.

Cheers,
Umesh

On Sat, Apr 11, 2009 at 3:51 PM, Jim Lemon <jim@bitwrit.com.au> wrote:

> Gundala Viswanath wrote:
>
>> Dear all,
>>
>> Is there a way to do it?
>>
>> The following code:
>>
>>
>>
>>> pdf("test.pdf")
>>> plot(1,1,col="red")
>>> dev.off()
>>>
>>>
>>
>> Only colors the plot into red, but not
>> x and y axis (inclusive the tick marks).
>>
>>
>>
> Hi Gundala,
>
> One easy way is to roll your own axes:
>
> plot(1,1,col="red")
> xylim<-par("usr")
> segments(xylim[1],xylim[3],xylim[2],xylim[3],col="red")
> axis(1,col="red")
> segments(xylim[1],xylim[3],xylim[1],xylim[4],col="red")
> axis(2,col="red")
>
> and this problem has appeared sufficiently often that I think a "fullaxis"
> function will appear in the next version of plotrix.
>
> Jim
>
> ______________________________________________
> R-help@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.
>

	[[alternative HTML version deleted]]


