Re: [R] lattice: Set x-axis in italics only

2010-09-13 Thread Alejo C.S.
Thanks all for the excellent help!

Kind regards,

Alej

2010/9/13 Dennis Murphy :
> Hi:
>
> demo(graphics) has a lot of nice examples of how to use various features -
> one of them is font selection.
>
> font = 3  => italic  font = 4 => bold italic
>
> You need to select the correct aspect of the plot, however: font.main,
> font.sub, font.lab or font.axis (from par()).
>
> HTH,
> Dennis
>
> On Mon, Sep 13, 2010 at 5:50 AM, Alejo C.S.  wrote:
>>
>> Dear list, I making some box-and-whisker plots in R with vertebrate
>> data. The x axis are species names that must be in italics. I tried
>> with the "axis" function but no luck, and it seems that affects both
>> axes.
>> Any tip?
>>
>> Thanks a lot in Advance.
>>
>> Alej
>>
>> __
>> 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.
>
>

__
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.


Re: [R] lattice: Set x-axis in italics only

2010-09-13 Thread Dennis Murphy
Hi:

demo(graphics) has a lot of nice examples of how to use various features -
one of them is font selection.

font = 3  => italic  font = 4 => bold italic

You need to select the correct aspect of the plot, however: font.main,
font.sub, font.lab or font.axis (from par()).

HTH,
Dennis

On Mon, Sep 13, 2010 at 5:50 AM, Alejo C.S.  wrote:

> Dear list, I making some box-and-whisker plots in R with vertebrate
> data. The x axis are species names that must be in italics. I tried
> with the "axis" function but no luck, and it seems that affects both
> axes.
> Any tip?
>
> Thanks a lot in Advance.
>
> Alej
>
> __
> 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]]

__
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.


Re: [R] lattice: Set x-axis in italics only

2010-09-13 Thread David Winsemius


On Sep 13, 2010, at 8:50 AM, Alejo C.S. wrote:


Dear list, I making some box-and-whisker plots in R with vertebrate
data. The x axis are species names that must be in italics. I tried
with the "axis" function but no luck, and it seems that affects both
axes.
Any tip?


In bwplot just add:

 ..., scales=list(x=list(font=3)),

In this case (and I suppose many others) lattice is much more flexible  
than base. I initially tried what appeared to be valid strategies with  
boxplot and ended up tied in knots. Then I noticed your subject line  
and it was trivial.


David Winsemius, MD
West Hartford, CT

__
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.


Re: [R] lattice: Set x-axis in italics only

2010-09-13 Thread Duncan Mackay

Hi

You may need to investigate ?plotmath and ?expression for the italics or 
possibly add a font=... somewhere

Sorry cannot be more help it is too late here

Duncan

Duncan Mackay
Department of Agronomy and Soil Science
University of New England
ARMIDALE NSW 2351
Email home: mac...@northnet.com.au

At 22:50 13/09/2010, you wrote:

Dear list, I making some box-and-whisker plots in R with vertebrate
data. The x axis are species names that must be in italics. I tried
with the "axis" function but no luck, and it seems that affects both
axes.
Any tip?

Thanks a lot in Advance.

Alej

__
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.


__
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.


[R] lattice: Set x-axis in italics only

2010-09-13 Thread Alejo C.S.
Dear list, I making some box-and-whisker plots in R with vertebrate
data. The x axis are species names that must be in italics. I tried
with the "axis" function but no luck, and it seems that affects both
axes.
Any tip?

Thanks a lot in Advance.

Alej

__
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.