Displaying 20 results from an estimated 40000 matches similar to: "Unable to plot dataframes"
2009 May 15
2
Additional points to scatter plot show up at wrong place
Hi everyone,
I have a problem with adding points to scatter plots.
The plot is drawn with the scatterplot() function from the car library:
scatterplot(data[,2] ~ data[,1],
data=data,smooth=F,reg.line=F,xlim=c(0.5,1),ylim=c(0.5,1),ylab="ML",xlab="Freq",cex.lab=1.9,cex.axis=1.8)
after that, I draw one line with abline(0,1,col="gray20") which works
perfectly fine.
2011 May 11
1
mtext text size (cex) doesn't match plot
Hi,
I am using mtext instead of the ylab argument in some plots because i
want to move it away from the numbers in the axis. However, the text
in the X axis,
for example:
par(mar=c(5, 5.5, 4, 2));
plot(data, main="plot name", xlab= 'X axis', ylab="",
font=2, cex.lab=1.5, font.lab=2, cex.main=1.8);
mtext('Y axis', side=2, cex=1.5, line=4,
2011 Jan 25
1
dendrogram plot does not draw long labels ?
Hello,
It seems that the plot function for dendrograms does not draw labels when
they are too long.
> hc <- hclust(dist(USArrests), "ave")
> dend1 <- as.dendrogram(hc)
> dend2 <- cut(dend1, h=70)
> dd <- dend2$lower[[1]]
> plot(dd) # first label is drawn
> attr(dd[[1]], "label") <- "aaaaaaaaaaaaaaaaaa"
> plot(dd) # first label is
2003 Aug 29
2
Lattice plot questions
Win2k, R1.7.1:
I am currently working with some growth curve data from a
biotoxicology experiment. Each of 12 subjects had their blood
drawn at 0, 2, 4, 6, 8, and 10 weeks. For the purposes of the
project, it would be helpful if I were able to do the following:
a. Produce 12 panels, each displaying the *same* data, with
the "strip" at the top of a particular panel showing
2008 Nov 21
1
cex.lab etc. ignored in plot.ts for multiple plots (PR#13315)
Full_Name: Yan Wong
Version: 2.8.0
OS: Mac OS X 10.4
Submission from: (NULL) (78.149.183.231)
When plotting multiple time series in a single plot, via
plot.ts(plot.type="multiple"), the cex.lab, col.lab, and font.lab arguments are
ignored
> plot(ts(data.frame(a=1:10, b=1:10)), plot.type="single", cex.lab=0.5,
col.lab="red") #tiny red axis labels
>
2005 Nov 07
2
lattice chart: different definitions for series
Hi enthusiasts,
Trying to create a single chart in lattice with different plotting
definitions for the different series (two series should be drawn with lines
and the other without them)
I am using a dataset, which includes a grouping variable e.g. clinic with
three levels, the variable "year" and a continous variable: "mct".
In the graph the variable "year" is in
2009 Jan 28
2
help with plot layout
It takes a lot of sweat to generate a composite plot with R ... sigh.
I though I was almost done when I met the umpteenth hurdle. I cannot place a nice title on the 2nd plot (raw signal)
on the layout. I do not have control on where either the "main" option of "plot" function, or "title", place the text
string which keeps dysplaying chopped from above. I also tried
2009 Jun 17
3
lattice: axis ticks, axis alignment and remove axis from plot
Hi there,
I'm a bit confused concerning the axis tck setting in the lattice
package as the ticks on left sided axis aren't
drawn at all with the following setting:
dados <- data.frame(varsep = factor(rep(1:2,10)),
i = runif(20))
library(lattice)
my.theme <- list(
axis.components = list(left = list(tck = 1, pad1 = 1, pad2 =
2), top = list(tck = 0, pad1
2009 Apr 21
2
multiple plots in same graph window
Hi,
I'm trying to make multiple plots in a same graph window in R.
The multiple graphs are showing up in the right positions on the window, but I'm having the problem that the graphic window is being refreshed every time a new plot is drawn, so that I end up with only the last graph coming up; the previous ones are all erased
If I try to print in a .eps file directly, then I end up
2007 Aug 02
1
New user help with plot.default
Hi - I'm just starting out with R and have come up against a problem with
what should be a simple operation. I'm plotting a range of safety standards
for 7 different chemicals. I don't want the standard box and whisker plot -
I just a dot for each value. Whilst using "plot.default" I get the error
"invalid xlim value" - which is confusing since using the same script
2000 Jul 12
1
plot.times error -- missing or illegal tck parameter (PR#601)
There seems no default setting for tck, causing problems
for plot.times()
> library(chron)
> dts <- dates(c("02/27/92", "02/27/92", "01/14/92",
+ "02/28/92", "02/01/92"))
> y<-chron(dts,out.format=c("dmy","h:m:s"))
> y
[1] 270292 270292 140192 280292 010292
> plot(y,1:5)
Error in axis(n, at =
2016 Aug 25
3
"plot.ts" doesn't respect the value of "pch" (+ blocked from Bugzilla signups)
I did a search on Bugzilla for "plot.ts" and didn't find anything on
this issue. I tried to sign up for Bugzilla to report it, but my e-mail
address didn't pass your "syntax checking" for a legal e-mail address.
The bug is easily reproducible on my machine as follows:
## start
# generate some data
y <- arima.sim(list(), 150)
# this will definitely dispatch to a
2007 Jan 07
2
different points and lines on the same plot
Dear all,
I have following data called "paitent"
day patient1 patient4 patient5 patient6
0 -0.27842688 -0.04080808 -0.41948398 -0.04508318
56 -0.22275425 -0.01767067 -0.30977249 -0.03168185
112 -0.08217659 -0.26209243 -0.29141451 -0.09876170
252 0.08044537 -0.26701769 0.05727087 -0.09663701
where each patient have response values at four time
points. I want to
2011 Mar 17
2
Help with Time Series Plot
Dear List,
This is an embarrassing question, but I can seem to make this work…How do I
change the font size on the xlab and on the numbers shown in the x-axis on
the time series plot below. The arguments cex.lab and cex.axis do not seem
to be 'passing' to the plot function.
plot(ts(rnorm(100), start=2004, freq=12),
ylab="RQI", xlab="My X lab",
2007 Sep 20
1
help with making a function of scatter plot with multiple variables
Dear list,
I have done a scatter plot of multiple variables in the same graph, with different col and pch. I managed to do it with the following code but not know how to make a function of these so that next time if I want to do similar graph but with new variables, I dont have to copy the code and then change the old variables with the new ones but just call a function with the new
2000 Feb 02
1
Outer margin (oma) settings for pairs()
I propose the following small changes to pairs.default.
The point is to allow control of the outer margin settings,
so that there is for example room for legends.
[Note also the issue re the setting of par()$usr on exit]
----------------------------------------------------------------
(1) Replace
function (x, labels, panel = points, main = NULL, font.main =
par("font.main"),
2008 Apr 29
1
ggplot2: setting global graphic parameters with png driver
Hi all,
I prepared a few charts with ggplot2, and was happy with the results as
displayed on screen.
I tried to draw them with a PNG driver instead. But I ran into several
problems while trying to increase the resolution of the picture.
Mainly, when I increased the picture size (e.g png(width=1024,
height=768) ), the texts (title, labels, etc...) where too small. I
tried to set the
2007 Sep 23
2
Plotting numbers at a specified decimal length on a plot()
Hi there,
I want to figure out how to plot means, with 2 decimal places, of any Y
variable on a scatterplot according to any X variable (which obviously
should have limited scope). I already figured out how to plot the
means, but without limiting their precision to 2 decimal places. This
is the code I used once I had the scatterplot drawn:
text(c(1990, 1992, 1994, 1996, 1998, 1999, 2000,
2007 Apr 23
1
high resolution plot tick problems
R-Masters,
I need to produce high resolution line plots, with two or more plots
per page. The commands I'm using cause the tick labels to appear on
the x-axis line itself rather than below it. And the tick marks are
so tiny they are invisible. These commands produce the problem on my
PC:
png("trial.png", width=3000, height=4800, res = 600 ) # width &
height purposely set
2001 Dec 10
4
Box around legends (and postscript?)
Hi all
Humbly begging forgiveness for bothering the list with yesterday's
lame--arsed question. Postscript, being a vector graphics file format,
is, um, resolution independant. The problem as Peter pointed out was
with the gimp, which defaults to 100dpi resolution when viewing
postscript files.
I have another (lame?) question. I have noted that when I produce a
graph with multiple