Displaying 20 results from an estimated 2000 matches similar to: "Fine tuning scatterplot() (car package)"
2010 Apr 25
1
categorical variable in scatterplot (car)
Hello R folks,
I am encountering a problem with the following scatterplot function from the
car package:
> scatterplot(y~x|z)
where y and x are continuous (interval) random variables and z is a
categorical variable. When z is a categorical variable coded 1 or 2, I
(appropriately) get a scatterplot of y by x, coded by z. Similarly, when z
is a categorical variable coded 1, 2, or 3, there is
2008 Feb 11
1
scatterplot in CAR
I am trying to use scatterplot function in CAR like the following:
scatterplot(X~Y)
I want to label X points and Y ponits using the different color.
Any idea for this?
Aimin
2006 Feb 01
1
Scatterplot color options in CAR package?
Hi All.
I'd like to change the default plotting colors used to construct a
scatterplot with regression line in the CAR package.
So,
scatterplot(y~pred,smooth=FALSE, xlab="X", ylab="Y", lwd=2)
If I change the palette (e.g., palette(ranbow(6)), I can change the color of
the lines and points.
However, the axes and labels remain in black (i.e., the first color in the
2010 Feb 12
1
scatterplot in Package CAR
Hi Folks,
Please,
when I ask the option reg.line at the scatterplot in package car, the OLS models includes a constant?
If not how can I do it sing the following code:
scatterplot(lfirms ~ lscale,
data=dataset,
reg.line=lm, smooth=FALSE, labels=FALSE,
span=0.5,
xlab="Relative Plant Fixed Cost",
ylab="Relative Number of Firms",
pch=c(18),
2009 Jun 09
1
scatterplot (car) legend modification
hi,
new to R and using the car package to do some scatterplots with ellipses
hoping to add the area and center points of each ellipse to the legend?
looking for some direction / ideas.... here is the script, the data is
where
golf shots end up by club.
x (dispersion), y (distance), group (Club)
thanks, sam
## usage: Rscript shotScatter.R infile outfile level1 level2 minX maxX
minY maxY
2002 Aug 26
1
(CAR) Scatterplot and problems (?) with abline
Network Blitz
I'm trying to generate a graph to summarize Interest Rate Parity. This
involves a scatterplot of x against y where the x and y limits are set
so to center the graph on 0,0 and then adding each axis line and a 45
degree line. Using CAR's scatterplot (sample code below) everything
except the axes plot fine:
scatterplot( Interest.Rate.Dif ~ ForPrm| profit,
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).
2012 Nov 15
2
Removing default loess line from scatterplot ({car})
scatterplot() is autogenerating a regression and loess line. I want to remove
the loess line, but can only find samples for how to add it. I definitely do
not have code that adds it (see below), so I am puzzling...
scatterplot(Aroused ~ anxious | group,
data=data,
xlab="Aroused",
ylab="Anxious",
main="Arousal and anxiety ratings",
xlim=c(0.5, 9.5),
2005 Jan 28
3
Conflicts using Rcmdr, nlme and lme4
Hello all!
R2.0.1, W2k. All packages updated.
I?m heavily dependant on using mixed models. Up til?now I have used
lme() from nlme as I have been told to. Together with estimable() from
gmodels it works smooth. I also often run Rcmdr, mostly for quick
graphics.
After using Rcmdr, on reopening the R workspace all help libraries for
Rcmdr (22 !) loads, among them nlme, but not Rcmdr itself. Why?
2005 Feb 15
1
Correct effect plots from lme() objects
Hello all!
R2.0.1, W2k
I posted this question to the list last Sunday without getting any
replies on the list. I got two off the list though, suggesting me to
plot "manually" as a second step, from estimable() or intervals()
objects respectively. As this was not really what I wished for, I take
the risk to upset somebody with a trivial question, and re-post it (just
a little
2010 Feb 23
2
scatterplots in car package
Hi, using scatterplot in 'car' package.
There are 4 plots to be pictured together (ignore data used):
library(car)
par(mfrow=c(3,1))
ts.plot(rnorm(100))
ts.plot(rnorm(100))
scatterplot(rnorm(100),rnorm(100),boxplot="",smooth=T) # scatter with
non-parametric fit
problem is that the last one comes 'always' separate.
Is there any way to solve it?? of course can use
2010 Oct 15
1
multiple car scatterplots on one graph
R version 2.11.1 on WinXP
How do I get 3 scatterplots with marginal boxplots (from the
car package) onto a single plot?
I have a data frame called bank
> dim(bank)
[1] 46 5
head(bank)
x1 x2 x3 x4 pop
1 -0.45 -0.41 1.09 0.45 0
2 -0.56 -0.31 1.51 0.16 0
3 0.06 0.02 1.01 0.40 0
4 -0.07 -0.09 1.45 0.26 0
5 -0.10 -0.09 1.56 0.67 0
6 -0.14 -0.07 0.71 0.28 0
2006 Nov 09
4
Plotting symbols with two positions?
Thanks a lot to Demitris for a prompt answer some minutes ago on another
tread (see below). To avoid excess mails on the list, I move onto next
question:
I have another small plotting problem that confuses me. I want to plot
results from a field trial series, using the numbers of the trials as
symbols in the plot.
pch = as.character(trial_no)
works fine, but truncates the trial number to the
2007 May 10
1
scatterplot3d fine tuning
I have a 3D scatterplot and would like to change the displayed range along the y-axis.
for instance suppose I have:
x = seq(0.2,0.7,0.01)
y = seq(0.4,0.9,0.01)
z = runif(51)
scatterplot3d(x,y,z,xlim=c(0.2,0.7),ylim=c(0.4,0.9),zlim=c(0,1))
But would like the y-axis to read: 0.4, 0.5, 0.6, blank, blank, 1.0
Is there a way to issue an "axis" statement in the scatterplot3d?
Also,
2005 May 18
1
Car Performance Tuning
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
List,
I googled on this, and despite getting some hits (due more to the
terms performance and tuning I think than anything) I was unable to
locate useful links for actual software.
I'm seeking software that will run on CentOS (or really any linux
install period) that will assist me in testing and tuning my
vehicle. I'm involved in import
2005 Nov 03
1
Problems with abline adding regression line to a graph
Hello all,
R2.1.1, W2k
I try to make a plot of a simple regression model in this way:
> with(njfA_bcd, {
+ plot(TC_OS.G31,Prot,cex = 2, col = "red", xlab= "TC/OS at GS32",
+ ylab="Grain crude protein (CP)")
+ })
This part works well and produces the datapoints as red circles.
When I try to add a line, using a fitted linear model in a way
that works perfect
2007 Jan 21
1
Scatterplot help
Hi my friends,
I'm trying to make a scatterplot like this.
1) I have a 3-variable dataset. They are ID, x, and y.
2) "x" is for the X-axis, "y" for the Y-axis, and "ID" is used to label all
the cases in the scatterplot.
3) After creating the scatterplot, I need to add both a X-axis reference
line and a Y-axis reference line. The X-axis reference line is a
2011 Feb 08
1
How to change labels in scatterplot?
Dear all,
I'm trying to use "scatterplot" from package "car" to get a scatterplot with
row-names as labels and I want my data to be divided into two groups defined
by the column "tresh". Leaving away the groups-command gives me the right
labels but they are not distinguished by colors according to "tresh". Does
anybody know why the following example
2012 Oct 23
1
scatterplot with wrong line offset
Hi All,
I'm trying to do a Scatterplot (package: car), and add a line (just for
reference).
There is my code:
#------------------------------------Code---------------------------------------------------
library("car")
library("calibrate")
G_T<-c("car","bike","boat")
ave<-c(80,10,45)
perf<-c(100,80,75)
df2<-data.frame(G_T,ave,perf)
2009 May 01
1
Plotting extra lines on scatterplot
Hello Everyone-
I'm in the process of slowly learning R and am having a little bit of
trouble plotting an extra line onto a scatterplot. I'm sure the answer
is quite simple but I am stumped.
The code I am using is:
headways <- read.table("headways.csv", header=TRUE, sep=",",
na.strings="", dec=".", strip.white=TRUE)
plot.new()