Displaying 20 results from an estimated 1000 matches similar to: "How to change labels in scatterplot?"
2011 Jan 14
1
Question about scatterplot in package car
I am getting an error message from scatterplot:
> library(car)
> scatterplot(Prestige$income~Prestige$type)
Error in Summary.factor(c(2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, 2L, :
range not meaningful for factors
In addition: Warning message:
In Ops.factor(x[floor(d)], x[ceiling(d)]) : + not meaningful for factors
>
The command does output the kind of graph that I want (boxplots).
2008 Oct 06
2
ignore error in for-loop
Hi all,
Can anybody tell me what to do in case an error occurs inside a
for-loop and I don't want the program to exit the loop? Rather
instead I would like it to just go to the next number in the loop and
try again with the new number. Is there any function like "on error
go back to" or "skip error" ... ?
Thanks in advance,
Erich
Erich STRIESSNIG
IIASA
2002 Nov 02
1
problem with expand.model.frame
Dear R list members,
I'm encountering a problem with expand.model.frame(): Suppose that I define
the following simple function (meant
just to illustrate the problem):
> fun <- function(model){
+ expand.model.frame(model, all.vars(formula(model)))
+ }
>
and I have the following model, created with an explicit data argument:
> mod
Call:
2002 Dec 01
1
generating contrast names
Dear R-devel list members,
I'd like to suggest a more flexible procedure for generating contrast
names. I apologise for a relatively long message -- I want my proposal to
be clear.
I've never liked the current approach. For example, the names generated by
contr.treatment paste factor to level names with no separation between the
two; contr.sum simply numbers contrasts (I recall an
2012 Apr 12
2
scatter3d: problem with spheres-color
Dear List,
I don't get scatter3d to color the sheres according to the '|' argument.
library(car)
scatter3d(prestige ~ income + education|type, data=Prestige)
The spheres on my screen are all colored the same and they are not
conditional on Prestige$type.
On the other hand: Fit3d and Ellipse3d are colored according to the
group argument.
rgl_0.92.879
car_2.0-12
R version 2.15.0
2017 Oct 15
2
Bootstrapped Regression
Hello Rui,
Thanks for your helpful suggestions. Just for illustration, let's use the
well known Duncan dataset of prestige vs education + income that is
contained in the "car" package. Suppose I wish to use boot function to
bootstrap a linear regression of prestige ~ education + income and use the
following script:
duncan.function <- function(data, indices) {data =
2017 Oct 15
0
Bootstrapped Regression
Hello,
Much clearer now, thanks.
It's a matter of changing the function boot calls to return the
predicted values at the point of interess, education = 50, income = 75.
I have changed the way the function uses the indices a bit, the result
is the same, it's just the way I usually do it.
pred.duncan.function <- function(data, indices) {
mod <- lm(prestige ~ education +
2008 May 12
2
ggplot2: font size mismatch for pdf output
Hi
In the following, the graph I see on the screen and the .png output
coincide. However, in the .pdf file, the fonts seem to be scaled
fairly larger, resulting in the label for the top legend disappearing.
Is this an infelicity or bug, or is there something I've missed?
More generally, how do I control the size of fonts used in legends
and axis labels?
library(car)
library(ggplot2)
qp
2006 Sep 19
2
help w/ Powerware Prestige 9
Hi,
I've got a Powerware Prestige 9 1kVA UPS that seems to not be working with
nut. It's not in the current "supported hardware" list, but the old
bcmxcp page lists it as being a UPS that speaks that protocol.
I have the following in my ups.conf
[powerware]
driver = bcmxcp
port = /dev/ttyS0
desc = "Powerware Prestige 9 EXT"
baud_rate = 2400
And when I start the
2005 Feb 24
1
choppy and cracking sound from zyxel prestige 2002
Hi,
Does anyone have suggestions hooking Zyxel Prestige 2002 to Asterisk?
I have tested Zyxel Prestige with both supported codecs.
Call with G.711 sounds very choppy and cracking. Almost can't understand
a word.
Today I installed G.729 support into Asterisk but unbearable voice
quality remains. It's a little bit better though.
I have tested that Zyxel ATA with some commercial SIP
2010 Mar 22
2
Factors attribute?
I noticed that when I fit a linear model using 'lm' there is an attribute called "factors" that is added to the "term". It doesn't seem to appear for 'model.matrix', just 'lm'. I have been unable to find where it gets constructed or what it means? It looks like a two dimensional array that I may be able to use so I would just like to get some
2009 Nov 08
2
linear trend line and a quadratic trend line.
Dear list users
How is it possible to visualise both a linear trend line and a quadratic trend line on a plot
of two variables?
Here my almost working exsample.
data(Duncan)
attach(Duncan)
plot(prestige ~ income)
abline(lm(prestige ~ income), col=2, lwd=2)
Now I would like to add yet another trend line, but this time a quadratic one. So I have two
trend lines. One linear trend line
2007 May 19
1
Powerware Prestige 1000VA
Hi all,
I've more-or-less got NUT 2.0.4 working with my Powerware Prestige
1000VA UPS (serial), but unfortunately NUT is flagging LOW_BATTERY
continuously, which is a tad embarrassing when power fails ;-)
The numbers from upsc blah at localhost seem reasonable:
ambient.temperature: 24.5
battery.charge: 99
battery.runtime: 3999
battery.voltage: 69.2
driver.name: bcmxcp
2006 Feb 24
1
Uploading driver to Samba
Hi
I'm replacing my actual print server by a Linux server and I have everything
else working except the following
When I try to uplad tme printer drivers to the special Samba print$, I
receive the following error
Samba unable to install Windows 2000, intel driver
I read an reread the how to an d differents books, without success
Is it working to upload like they say in the How To ?
(many
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2006 Aug 04
1
polychoric correlation error
Dear all,
I get a strange error when I find polychoric correlations with the ML method, which I have been able to reproduce using randomly-generated data.
What is wrong?
I realize that the data that I generated randomly is a bit strange, but it is the only way that I duplicate the error message.
> n<-100
> test.x<-rnorm(n, mean=0, sd=1)
> test.c<-test.x + rnorm(n, mean=0,
2004 Jun 02
5
ZyXEL Prestige 2000W SIP hangup fails
Does anybody have any experience with the ZyXEL Prestige 2000W? I am
having problems with the line tear down when I call another extension.
If nobody picks up at the other end when I hangup the 2000W, the other
extension continues to ring. Is there any way to hangup a SIP call if
there is no more traffic? Asterisk seems to think that there is still a
connection open. This is pretty annoying
2005 Aug 23
2
Zyxel Prestige 2000W Firmware - EVIL
If you see a wj0011 version of firmware for Zyxel Prestige 2000W floating around
(I found it in a German forum), KEEP AWAY.
It completely trashed the wireless networking in my phone.
--
==========================================
Rod Bacon
Empowered Communications
Ground Floor, 102 York St. South Melbourne
Victoria, Australia. 3205
Phone: +613 99401600 Fax: +613 99401650
FWD: 512237
2011 Aug 04
1
How to get the test statistic corresponding to the p-value in mtable?
Dear R-Users,
I want to use mtable from package "memisc" to produce Latex-style estimation
output. However, mtable() only gives me a p-value and not the corresponding
test-statistic. Does anyone know how to extract it, either from a glm/anova
object or mtable? Here is a short example:
# Run this ####################
install.packages("memisc")
library(memisc)
set.seed(1)
2004 Jul 13
5
WiSIP and Zyxel Prestige 2000W
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Anyone have any experience with either of these, I 'd appreciate some
feedback? Plus it seems pretty easy to steal a connection with this.
Zyxel Prestige 2000W
WiSIP
thanks,
- --
Steve
"They that would give up essential liberty for temporary safety deserve
neither liberty nor safety."
Benjamin