similar to: plot with fixed axis proportion

Displaying 20 results from an estimated 6000 matches similar to: "plot with fixed axis proportion"

2008 Oct 16
1
draw a 5cm x 3cm rectangle
Hi I want to draw sth in a pdf file with a predefined defined size. Say a 5cm x 3cm rectangle (a ruler): pdf("rect.pdf", paper="a4") plot(c(1,5,5,1,1),c(1,1,3,3,1),asp=1,axes="n") dev.off() but how do I fix that one unit is 1cm? Thanks thomas
2009 Mar 28
7
unicode only works with a second one
I'd like to paste a zodiac sign on a graph, but it only prints it when I add another unicode ( \u3030) to the desired \u2648 - why? See the examplecode (compare the orange with the skyblue): plot(c(-1,1),c(-4,-2),type="n") text(x=0,y=-3.0,labels="\u2648 \u3030",cex=2.3,col="skyblue") text(x=0,y=-3.2,labels="\u2648",cex=2.3,col="orange")
2008 Sep 24
2
rgl: ellipse3d with axes
Last week I asked about data ellipses with rgl:::ellipse3d() with lines showing the principal axes. (The goal is a visual demonstration of PCA as a rotation of variable space to component space.) I was trying, unsuccessfully, to use princomp() to generate the PCA axes and plot them using segments3d: > > PC <- princomp(trees) > > sdev <- PC$sdev # component standard
2006 Feb 08
3
print formula on plot
I estimate some parameters and I want to print them (pretty) on my plot: # somehow estimated parameters z<-c(1.543523e+00, 1.23453e+00, 3.454000e+00) x<-seq(-1,1,length=100) plot(x,z[3]*x^2+z[2]*x+z[3],type="l", main="My nice plot of the estimated function") zs<-format(z,digits=4,scientific=FALSE,trim=TRUE) text(-0.9,7,expression(1.54*x^2)) # is
2005 Nov 29
3
drawing a circle using symbols
Dear friends, I was drawing a circle with centrum in (1,-1) and radius 5 to show my girl that the line y=3*x+1 goes through (1,4) and (-2,-5) of the circle, but on Windows XP, R 2.20 the drawing was not good at all, and the known solutions were not shown in the graph. I guess I got it wrong? Is this use not intended ? Best wishes Troels Ring, MD Aalborg, Denmark
2008 Mar 10
3
internet proxy settings (win)
I cannot access internet through R. My IT-guys told me that I should set the proxy and the port and then everything will be fine. Where can I set them? I use R 2.6.2 under Windows 2000 and these settings are those of the Internet Explorer (no password). I read http://cran.at.r-project.org/bin/windows/base/rw-FAQ.html#The-Internet-download-functions-fail_002e but staring R by "C:\Program
2008 Mar 20
4
little subplot in corner
I want to draw a little subplot ("overview") into my detailed plot. It should be placed in say the top right corner and have the size of some legend (like legend(x="topright", inset=0.03, ...) #main plot plot(rnorm(100)) #give little density in corner plot(seq(-2,2,length=300),dnorm(seq(-2,2,length=300)),type="l") I don't want something like par(mfrow=c(1,2)) as
2009 Nov 29
1
Roman numerical output
I have integers and I want R to give them back/output as Roman numerals: s=c(7,17) format(s,roman=T) is obviously wrong. Is there any other way/function to do this? Thanks, Thomas
2006 Oct 01
1
pie() with only 180°
I want to plot the results of today's elections in Austria in this typical 180?-piechart (and not 360?). Unfortunantely pie() has just an argument "init.angle" and no "end.angle". Perhaps you know a workaround. Thomas
2009 Aug 02
1
package to convert coordiantes to timezone
Is there a R-package with a function that returns me the timezone, if I hand over longitude and latitude? I know online services like http://ws.geonames.org/timezone?lat=-38.01&lng=147 and http://www.earthtools.org/webservices.htm#timezone and wodner if this exists for R too. Thanks for helping, thomas
2010 Jun 04
1
strange behaviour of CairoPNG
Hi, could it be that the text() fuction gives different output for normal png() and CarioPNG()? See the following example and the attached images: the font=2 and font=3 seem to be exchanged! Thanks for help, Thomas CairoPNG("Test-cairo.png",width=750,height=690) #png("Test-normal.png",width=750,height=690) plot(1,1,type="n",main="normal")
2008 Mar 22
2
intraday OHLC plot
I want to create a open/high/low/last plot of intraday data. I try to use the function plotOHLC from the tsteries package. I create my own multiple time series and then try to plot it. raw Data Format (file eurusd2.csv): "Date (GMT)" "Open" "High" "Low" "Last" 17-03-2008 00:00:00 1,5764 1,5766 1,5747 1,5750 17-03-2008 00:05:00 1,5749 1,5750 1,5741
2003 Feb 26
5
[Package car/data.ellipse]: confidence intervals off by factor sqrt(2)??? (PR#2584)
Full_Name: Volker Franz Version: Version 1.6.2 (2003-01-10) OS: Debian Submission from: (NULL) (192.124.28.104) Hi there, it seems to me that data.ellipse of package "car" (Version 1.0-1) produces confidence interval's which are too big. To see this, do: library(car) plot(c(-2,2),c(-2,2),pch=0) data.ellipse(rnorm(10000),rnorm(10000),levels=0.68,plot.points=F) abline(v=+1)
2008 Oct 19
1
convert lines to inches
Hi, how can I convert the unit "lines" of par("mar") into inches? par("mai") could help, but does not (see code below). I want to plot a curve in a predefined size in pdf (I add some margin space to the plot width&height, everything is in cm): pdf("test.pdf",width=(20+2+4)/2.54,height=(10+3+1)/2.54) plot(10:30,
2006 Apr 22
4
how to draw a circle
how to draw a circle (e.g. radius=10cm) of one point? And how to choose these points in the circle? Thanks! [[alternative HTML version deleted]]
2011 Jan 20
2
circular reference lines in splom
Hello everyone, I'm stumped. I'd like to create a scatterplot matrix with circular reference lines. Here is an example in 2d: library(ellipse) set.seed(1) dat <- matrix(rnorm(300), ncol = 3) colnames(dat) <- c("X1", "X2", "X3") dat <- as.data.frame(dat) grps <- factor(rep(letters[1:4], 25)) panel.circ <- function(x, y, ...) { circ1
2010 Aug 19
1
Correlograms and linear regression
Dear all, I generated a Correlograms and used the panel.ellipse (confidence ellipse and smoothed line) option. Is there a way to get instead of the smoothed line the linear regression? Thanks, As hz -- View this message in context: http://r.789695.n4.nabble.com/Correlograms-and-linear-regression-tp2331071p2331071.html Sent from the R help mailing list archive at Nabble.com.
2002 Apr 29
1
masking functions
Dear all I was writing some code that needed functions from packages 'MASS' and 'CircStats', and I received a warning saying that the function 'eqscplot' in one of the packages was masked by another 'eqscplot' from the other package (in fact 'eqscplot' from 'CircStats' seems a short version of 'eqscplot' from 'MASS'). This masking of
2004 Nov 02
2
lda
Hi !! I am trying to analyze some of my data using linear discriminant analysis. I worked out the following example code in Venables and Ripley It does not seem to be happy with it. ============================ library(MASS) library(stats) data(iris3) ir<-rbind(iris3[,,1],iris3[,,2],iris3[,,3]) ir.species<-factor(c(rep("s",50),rep("c",50),rep("v",50)))
2000 Mar 22
4
density ellipses?
Hello, has anybody written a function to plot density ellipses (95%, 99% or anything) in a scatterplot? I found nothing in any package, nor in the list archives. There does seem to be a contributed package "ellipse" for S-Plus (on S-Archive), but it does a lot more than what I would need. Still, if anybody ported it to R, I'd be grateful for a link. I'm a bit afraid to try the