Displaying 20 results from an estimated 31 matches for "minlength".
2009 Dec 08
3
re-ordering x-lables using barchart()
...;Morris", ...). I'm using
following code:
libarry(lattice)
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(6,1), aspect=.7,
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE, rot=45, minlength =
5)))
Can anyone help please.
-Gary
[[alternative HTML version deleted]]
2006 Jul 27
9
Introspecting validates_presence_of
Hello people,
I''d like to detect whether an attribute of a model has
vaildates_presence_of applied to it so I can automatically apply a
mandatory (*) to the field...it doesn''t look easy...any ideas?
Cheers,
--
Dan Webb
http://www.danwebb.net
2009 Jun 24
2
vertical label on x-axis
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
2010 May 07
3
How to sort a grouped barchart?
...according one group in one panel.
Reminding:
library(lattice)
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6),
ylab = "Barley Yield (bushels/acre)", auto.key=list(),
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
I want to sort the yield value, in "waseca" site (e.g.), according the group
of 1931. How can I do this???
Thanks
--
View this message in context: http://r.789695.n4.nabble.com/How-to-sort-a-grouped-barchart-tp2133579p2133579.html
Sent from the R help mailing list archive at Na...
2006 Jul 13
1
writeForeignSAS and potential extensions
...e = c("V7", "V6")){
+ validvarname <- match.arg(validvarname)
+ nmax <- if(validvarname == "V7") 32 else 8
+ x <- sub("^([0-9])", "_\\1", varnames)
+ x <- gsub("[^a-zA-Z0-9_]", "_", x)
+ x <- abbreviate(x, minlength = nmax)
+
+ if (any(nchar(x) > nmax) || any(duplicated(x)))
+ stop("Cannot uniquely abbreviate the variable names to ",
+ nmax, " or fewer characters")
+ names(x) <- varnames
+ x
+}
+
+make.SAS.formats <- function(varnames){
+ x <- sub("^([0-9...
2006 Mar 21
5
How to use: library lattice: barchart
...elp(xyplot)) is an example
given how one can use barchart:
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6),
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
I want my data to be represented just in the same way. But when I try it like
this:
ayield = c(2,3,5,6,3,4,7,8,9,2,3,5,6,1,2,3,4,2,6,8)
avariety = c(rep("A",5),rep("B",5),rep("C",5),rep("D",5))
ayear = (c(rep(1931,10),rep(1932,10)))
asite = c...
2003 Jul 28
5
VoiceMail2 Wish List
Here are a few things I would like to see ..
1. In addition to time/date stamps, store/read the caller id info with the
voicemail messages.
2. Have the ability to configure the system to ignore and delete messages
left by a caller that are 3 seconds or less (maybe make this configurable)
Not sure but that would cut alot of hangup calls out of your voicemail
box.
I can't think of much more
2009 Dec 07
2
problem in labeling the nodes of tree drawn by rpart
...(mytree) and used the command "text" to add labels
to the tree.
In the nodes of the tree, the values of the covariates are represented with
a, b or c.
Is there a way to show the real value(s) of the variable in the nodes
instead of a, b or c ?
I found that the command "labels(mytree,minlength=3)" can give me the
desired label, but I don't know how to add it to the tree.
Best,
Kaida
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tree.pdf
Type: application/pdf
Size: 32968 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-he...
2009 Dec 20
1
expression()
...egree should be in
symbols. Thanks in advance,
#R Code
library(lattice)
data(barley)
barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6),
ylab = "Temperature (degreeF)",
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
~Kim Jung Hwa
[[alternative HTML version deleted]]
2008 Dec 23
1
Borders for rectangles in lattice plot key
...pace="top",
rectangles=list(col=bar.cols),
text=list(c("foo", "bar"))
)
barchart(
yield ~ variety | site,
data = barley,
groups = year,
layout = c(1,6),
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE, minlength = 5)),
col=bar.cols,
border="transparent",
key=key.list
)
Notice the black borders around the rectangles in the key.
I checked to see if there was an undocumented border component for the
rectangles compoenent of key that I could set to "transparent" or FALSE,
but...
2009 Oct 13
1
Lattice barchart-reordered
Hi,Can I use "reorder" function with barchart as in dotchart? Here are some
codes which do not work for me. Thanks
Chetty
___________________________
a1c.cast$bmi.cat.reordered[a1c.cast$eth!="Other"]
<-with(a1c.cast[a1c.cast$eth!="Other",],reorder(bmi.cat.ordered[a1c.cast$eth!="Other"],
BP.FN.RATE,median ))
barchart(BP.FN.RATE~
2009 Dec 01
1
Overlapping Plot Labels and Color Palette
...lot my row names onto the graph using text() (with the help of this list), but because it is entirely possible for some rows to have the same X/Y coordinates, I need to separate the data labels so that I can clearly see each.
I tried text(jitter(coordinates), labels = abbreviate(rownames(dataset), minlength=3)), but it appears that jitter effect is the same for each x/y pair and not unique to each row.
2) I want to vary the color palette. In the package help, it discusses the ability to change it, but never mentions anything about what my options are, other than showing "rainbow" in the do...
2010 Nov 08
1
Add text to a stacked barplot
...;Visit",ylab="Frequency",
layout = c(4,2),
par.settings=list(superpose.polygon=list(col=colors()[c(636,96,256,92,27,376)])),
stack = T,
auto.key = list(points = FALSE, rectangles = TRUE,
space = "top"),
scales = list(x = list(alternating=c(1,1),tck=c(1,0),abbreviate = TRUE,
minlength
= 5, rot = 0),y=list(alternating=c(1,1),tck=c(1,0))),
panel = function(y,x,...){
panel.grid(h = -1, v = 0, col = "gray", lty = 3,lwd=1)
panel.barchart(x,y,...)
panel.text(x,y,label = round(y,1),cex=0.48)
}
)
Kind regards,
Ashraf Yassen
[[alternative HTML version deleted]]
2006 Feb 13
1
PrivacyManager Broken?
...o some problems here with PrivacyManager. We used to
use it without any issue, but now there seems to be several problems.
We are currently running Asterisk 1.2.4.
First, it seems that if the user does not press the pound (#) key after
entering their number, PrivacyManager will fail. I have the minlength
set to 10, and entering 10 digits doesn't work. Entering 11 digits
doesn't either. But entering 10 followed by the pound key will.
Second, once the user figures out how to operate PrivacyManager, there's
another problem: My extension rings to a SIP extension (Polycom IP
phone) and a...
2012 Aug 03
3
Sum two Vectors of different length
Dear all,
in one part of my code I want to sum two vectors element-wise
the problem is that either the 1st vector or the 2nd vector always have one or two less elements
example of my problem
In TotalVector + (datalist2[[1]]$dataset$Results[[j]]$Results[[time]]$Sweep) :
Länge des längeren Objektes
ist kein Vielfaches der Länge des kürzeren Objektes
Browse[1]> str(TotalVector)
int
2009 Jun 10
1
PrivacyManager no longer working properly
Hi all,
Previously, I had the PrivacyManager working for me exactly as would
be expected, but after upgrading the OS to Debian lenny and Asterisk
to v1.4.21.2 that's no longer the case. Anonymous callers are still
confronted with the PrivacyManager, but now no matter what I set the
minlength value to, e.g.:
exten => jaap,n,PrivacyManager(1,1)
... (I'm not using a privacy.conf file), the submitted caller ID is
always considered invalid.
Does anyone recognize this problem? Does the PrivacyManager have a new
parameter that I'm missing?
Thanks,
Jaap
2006 Nov 06
1
line width (all elements) in Trellis
....par.get("reference.line")
tpar12$lwd=c(rep(2,7))
trellis.par.set("reference.line", tpar12)
barchart(yield ~ variety | site, data = barley, groups = year,
layout = c(1, 6), ylab = "Barley Yield (bushels/acre)", scales =
list(x = list(abbreviate = TRUE,
minlength = 5)))
--
Daniel E. Bunker
BioMERGE Associate Director
Post-Doctoral Research Scientist
Columbia University
Department of Ecology, Evolution and Environmental Biology
1200 Amsterdam Avenue
New York, NY 10027-5557
deb37ATcolumbiaDOTedu
212-851-1888 phone
212-854-8188 fax
2010 Jul 05
4
Data Labels in a barchart (Lattice or otherwise)
Hi,
Can anyone please help me with how I could add labels with the value for
each bar in a barchart? (similar to how data labels can be added in Excel) I
have done a lot of searching but havent been lucky.
Thanks,
Raoul
--
View this message in context: http://r.789695.n4.nabble.com/Data-Labels-in-a-barchart-Lattice-or-otherwise-tp2278027p2278027.html
Sent from the R help mailing list archive at
2009 Oct 18
1
function to convert lm model to LaTeX equation
...ne", abbreviate = TRUE, abbrev.length=8, digits=3) {
# Get and format IV names
co <- c("Int", names(object$coefficients)[-1])
co.n <- gsub("p.*)", "", co)
if(abbreviate == TRUE) {
co.n <- abbreviate(gsub("p.*)", "", co), minlength=abbrev.length)
}
# Get and format DV
m.y <- strsplit((as.character(object$call[2])), " ~ ")[[1]][1]
# Write coefficent labels
b.x <- paste("\\beta_{", co.n ,"}", sep="")
# Write error term
e <- "\\epsilon_i"
# Format coefficint x...
2010 Feb 12
2
print() / split()
...ange it to 2 X 2 [ equivalent of par(mfrow=c(2,2)) ]. Thanks,
require(lattice)
p1=barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6),
ylab = "Barley Yield (bushels/acre)",
scales = list(x = list(abbreviate = TRUE,
minlength = 5)))
p2=barchart(yield ~ variety | site, data = barley,
groups = year, layout = c(1,6), stack = TRUE,
ylab = "",
scales = list(x = list(rot = 45)))
print(p1, split=c(1,1,2,1), more=TRUE)
print(p2, split=c(2,1,2,1))
[[alternative HTML version deleted]]