Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
lattice-dotplot: resize axis
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
René Mayer  
View profile  
 More options Oct 5 2011, 7:30 am
From: "René Mayer" <ma...@psychologie.tu-dresden.de>
Date: Wed, 05 Oct 2011 13:30:17 +0200
Local: Wed, Oct 5 2011 7:30 am
Subject: [R] lattice-dotplot: resize axis
dear all,

I want to make a dotplot with ratings from Items in 6 ItemsGroups.
I reordered the items by rating within each group.
I plotted the items by rating conditional on ItemGroup.
The ordering works as I wanted but my y-aches labels (items) within  
each ItemGroup are now unequally spaced, e.g., in some panels there is a
gap between one lower rated item and the next higher, to give a picture

items=a,e,f,g

ItemGroup=n
-----------------
g|      .
f|   .
e|  .
  |
  |
  |
a| .
-----------------

How can I correct this? What have I overlooked?

# code i've used (from latticeExtra/utilities/resize panels)
library(latticeExtra)

mean.ratings$item.name <-
     with(mean.ratings, reorder(reorder(item, rating),
                         as.numeric(ItemGroup)))
dpratings <-
     dotplot(item.name ~ rating | reorder(ItemGroup, rating),
             data = mean.ratings, layout = c(1, 6), xlim=c(1,6),
            aspect = .1,
             scales = list(y = list(relation = "free", cex=.5)))

## approximate
resizePanels(dpratings,
              h = with(mean.ratings, table(reorder(ItemGroup, rating))))

thanks,
René

______________________________________________
R-h...@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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Deepayan Sarkar  
View profile  
 More options Oct 13 2011, 5:30 am
From: Deepayan Sarkar <deepayan.sar...@gmail.com>
Date: Thu, 13 Oct 2011 15:00:03 +0530
Local: Thurs, Oct 13 2011 5:30 am
Subject: Re: [R] lattice-dotplot: resize axis
On Wed, Oct 5, 2011 at 5:00 PM, René Mayer

A reproducible example would help.

-Deepayan

______________________________________________
R-h...@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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »