Displaying 20 results from an estimated 9000 matches similar to: "Automatic anchors for text boxes"
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).
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
2008 Feb 15
2
Controling width of boxes in boxplots
Hi,
I want to add boxplots to a scatterplot:
plot(x,y, xlim=c(80,120),ylim=c(80,120))
boxplot(y,add=TRUE,at=118)
boxplot(x,add=TRUE,at=118,horizontal=TRUE)
How can I control the width of the boxes (say, I'd like them to be of
width 3 in the variables' scales). I've tried the "width" parameter
but failed.
Thanks in advance,
Marcin
2009 Apr 26
4
Scatterplot of two groups side-by-side?
Dear all
I'm realy new to R, so I hope you can help me, as I didn't find any solution in the common books.
Since some days I'm trying to create the following plot: A scatterplott showning two different groups side-by-side with according regression lines. Both datasets only have the same five factors, so the scatters will form a kind of column at each factor. When I 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
2010 Jul 07
3
Boxplots over a Scatterplot
Hello-
I'm new to R, coding and stats. (Oh no.)
Anyway, I have about 12000 data points in a data.frame (dealing with
dimensions and geological stage information for fossil protists) and have
plotted them in a basic scatter plot. I also added a boxplot to overlay
these points. Each worked fine independently, but when I attempt to
superimpose them with add=true, I get a different scale for
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 <-
2007 Dec 14
3
Plot question
I have some data consisting of multiple trials of an experiment with
different values of an independent variable. If I run
R> plot(var,result)
I get a scatterplot of result versus the independent variable var.
If I run
R> plot(as.factor(var),result)
I get a boxplot of the distribution of result for each value of var. In
this plot, each boxplot is labeled by the corresponding value of
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
2006 Apr 24
2
boxplots instead of a scatterplot
Dear R list,
I am a newbie to R and programming itself, so my question may be easy to
answer for you.
I wanted to create a scatterplot and i used the following code:
par(mar=c(10, 4.1,4.1,2.1))
plot(q$location,q$points, , las=2, cex.axis=0.5,xlab="", ylab="" )
#location are character strings, there are about 70 locations
#points are numeric, there are more than 4 points for
2007 Sep 06
1
text in boxplots
Hi All,
I can't get text to print on a boxplot using the 'text' command. 'mtext'
works, but not 'text'. Is it a matter of boxplots being drawn over text?
Pointers appreciated.
TIA,
YVes
--
View this message in context: http://www.nabble.com/text-in-boxplots-tf4394528.html#a12530892
Sent from the R help mailing list archive at Nabble.com.
2011 Jul 02
1
Error when using plot in diag.panel argument of pairs
Dear Madame or Sir,I am having a problem in combining density-smoothed scatterplot matrices with a plot of kernel destiny estimations of each dimension plotted on the respective field of the diagonal.I have tried following approach using the package "sm" for the kernel density estimation, as well as "MASS" respectively:pairs(myTable[, 1:4],panel=function(x,y, ...){
2011 Dec 09
1
Fixed! Thanks all:RE: scatterplot to boxplot translation?
Thanks to David and Jorge - both of your helpful suggestions got me to the desired endpoint. In case anyone else has this question: I boxplotted my y variable data, but did the "cut" operation on the x variable in order to conserve the order of the y data. I see another suggestion coming in from another user that basically says this.
So, my working line of code was:
boxplot(count$RPKM
2010 Sep 20
2
invalid 'row.names' length error when running scatterplots or plot in R Commander
Hello,
I teach statistics and use R Commander for teaching. I have 2 students
out of 169 that can't get scatterplots or plot to work. I have had them
update packages, restart R/R Commander/their computers and even
reinstall R/R Commander. One is using Windows 7 on a new pc and the
other is a pc user (not sure the OS). They are both using R2.11.1 and R
Commander 1.6-0.
The data look like
2007 Sep 27
2
plot or boxplot!
Hello,
if we suppose that
times <- c("2006-05-14", "2006-06-12", "2006-06-12", "2006-05-14", "2006-05-14", "2006-06-12")
value <- c(2,3,1,4,3,1)
then with
plot(times, value)
we have two boxplots in one graph for 2006-05-14 and 2006-06-12 respectively! Is it possible to have them in a scatterplot? and
2005 Sep 24
5
plot, spineplot, boxplot in R 2.2.0
I noticed, what seened to me, to be odd. These produce
a boxplot in the first case and a spineplot in the second
case in R .2.2.0:
plot(Sepal.Length ~ Species, iris)
plot(Species ~ Sepal.Length, iris)
What if one wants to exchange axes? Does the fact that
this seemingly innocuous change result in completely
different graphics make sense? Is it desirable?
2012 May 19
3
Q - scatterplot, plot function & trellis linear regressions???
Hi R-listers,
Q1) What is the difference between the scatterplot and plot function?
Q2) I am able to make a graph with the scatterplot function:
scatterplot(DevelopIndex ~ Veg,
+ data = Turtle,
+ xlab = "Vegetation border (m)",
+ ylab = "Embryonic development index")
And have been successful. But I do not know if the lines are for:
2001 Feb 10
3
Scatterplot - symbols coded by factor
Hi - I would like to create a scatterplot with the symbols coded by a factor in each record. Is their a better way than what I have used below? I attempted to use the plot.factor, but cannot force it to make a scatterplot instead of boxplots. I have considerd making a function with a 'for' statement for each level of the factor. Is there a better way for when I am dealing with more
2012 Feb 10
1
Q - scatterplots
I was able to make a scatterplot but ...
1) what does the "86" mean? The "86" shows up on the graph as well.
> scatterplot (Shells/TotalEggs ~ Sector, data = data.to.analyze)
[1] "86"
2) Also how do you change the Y axis title? I don't want it to read
Shells/TotalEggs, instead I would like it to read Average Hatching Rate (%).
3) What does this error mean?
2011 Jun 08
3
How to suppress factor labels
I am using ggplot2 to make a boxplot that overlays a scatterplot:
pp = qplot(time, error, data=times, size=I(1), geom="jitter", main=title,
ylab="Error (min)", xlab="Time before ON (min)", alpha=I(1/10),
color=times$runway,
ylim=c(-30,40))
pp2 = pp + with(times, facet_wrap(~ runway, ncol=2))
print(pp2 + geom_boxplot(alpha=.5,