I have plotted the dataset below into a stripchart, which gives me the correct 
graph. However, my x-axis labels are to long to display hortizonal. I would 
like to display the labels at a 45 degree angle so that all of the labels are 
displayed. I have used the following text+par code on other graphs and it seems 
to work fine, but it does not seem to be working on here. I notice when I 
output the graph to the dataset "mp" then it's value is NULL. Is the stripchart 
design to be outputted like other graphs?  What is the correct syntax to change 
the position of the x-axis?

library(lattice)
par(mar = c(7, 4, 4, 2) + .9)

mp<-stripchart(InitialScore+FinalScore ~ Scale,data=mpi, vertical=TRUE, 
method="jitter",pch=1:11,col=1:11,  ylab="Scale (0-100)")
 axis(1, at = mp, labels = FALSE)
 text(mp,par("usr")[3] - 0.5,srt = 45, adj = 1.1,labels = mpi$Scale,xpd = TRUE)
Error in text.default(mp, par("usr")[3] - 0.5, srt = 45, adj = 1.1, labels = 
mpi$Scale,  :
  'x' and 'y' lengths differ in text()

Dataset:
Scale

InitialScore

FinalScore

1-Pain Severity

75

33

2-Interference

63

35

3-Life Control

20

40

4-AffectiveDistress

65

60

5-Support

33

60

6-Punishing Responses

40

20

7-Solicitous Responses

74

84

8-Distracting Responses

40

90

9-GeneralActivity

20

75

10-Dysfunctional

71

40

11-Interpersonal Distress

60

25



Chris Anderson
Data Analyst
Medical Affairs
wk: 925-677-4870
cell: 707-315-8486
Fax:925-677-4670





This electronic message transmission, including any attachments, contains
information which may be confidential, privileged and/or otherwise exempt
from disclosure under applicable law. The information is intended to be for the
use of the individual(s) or entity named above. If you are not the intended
recipient or the employee or agent responsible for delivering the message
to the intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of the contents of this information is strictly prohibited. 
 If
you have received this electronic transmission in error, please notify the 
sender
immediately by telephone (800-676-6777) or by a "reply to sender only"
message and destroy all electronic and hard copies of the communication,
including attachments.  Thank you.

For more information on Paradigm Management Services, LLC, please visit
http://www.paradigmcorp.com

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

Reply via email to