[R] label sorting x-axis

Christian Schulz chschulz at email.de
Wed Jun 24 15:24:07 CEST 2009


Thanks, how is it possible  that the x-axis labels getting the row 
sorting  instead the alphabetically one?
Could i  just printed  only every n (i.e. 3rd) label?

Christian

df <- data.frame(value=runif(26),le=letters)
df <- df[order(df[,1]),]
dotplot(value ~ le,data=df)


> Maybe you want to have a look at the las option under ?par nevertheless.
> Not sure whether it works in your example, though.
> HTH, Michael 
>
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
> On Behalf Of Christian Schulz
> Sent: Mittwoch, 24. Juni 2009 14:04
> To: r-help at r-project.org
> Subject: Re: [R] vertical label on x-axis
>
> I get it :
> scales=list(x=list(rot=90))
> Cheers, Christian
>
>   
>> Hi,
>>
>> have anybody a hint how it's possible plot the labels in the x-axis 
>> vertical to get more space.
>> dotplot( value ~
>> abbreviate(attribute,minlength=3),data=tabstat10,ylim=c(0,1),col="blue
>> ",ylab="Value",type="p",par.settings=my.theme)
>>
>>
>> Many thanks,
>> Christian
>>
>>
>>     
>
> ______________________________________________
> 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.
>
>




More information about the R-help mailing list