Displaying 20 results from an estimated 36 matches for "cnvrt".
2007 Jun 19
4
plot only x- and y-axis with origin, no box()
hi all,
I'm trying for quite some time to have an x- and y-axis, but no entire box.
>plot(..,axes=F)
>axis(1)
>axis(2)
Gives this, but their axes do not go to the origin.
Quite a number of people find this gap between the two axes disturbing.
Has anyone an idea how to let these axes go to the origin?
thank you in advance
[[alternative HTML version deleted]]
2007 Apr 18
5
Problem with ?curve
Dear all R gurus,
I have following syntax:
y = c(1:10)
chippy <- function(x)
{
y[5] = x
sin(cos(t(y)%*%y)*exp(-t(y)%*%y/2))
}
curve(chippy, 1, 20, n=200)
But I am getting error while executing :
Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ
In addition: Warning message:
number of items to
2004 Dec 14
2
drawing a rectangle through multiple plots
How do I draw a rectangle across multiple plots on a device?
E.g.,
def.par <- par(no.readonly = TRUE)
par(mfrow = c(3, 1))
plot(1:10, rnorm(10), ylim = c(-4,4), type = "l")
plot(1:10, rnorm(10), ylim = c(-4,4), type = "l")
plot(1:10, rnorm(10), ylim = c(-4,4), type = "l")
rect(2, -4, 3, 4)
par(def.par)
I want the rectangle to extend across the whole device. How
2009 Feb 22
3
line joining graphs
hi,
I need to draw a line joining graphs,but abline stops within a graph.What do
i do to cover portions between two graphs
--
Rajesh.J
[[alternative HTML version deleted]]
2006 Apr 10
2
Legend in the outer margin
Dear Rs
I have a 3x3 multiple plot. I would like to have a overall legend in
the outer right margin.
From the help archive, I found that it can be done by setting
par(xpd=NA). However, I couldn't find the correct values
for x and y co-ordinates for the legend. Please find the code snippet below:
par(mfrow=c(3,3), mar=c(4,4,0.9,0.5), oma=c(1,2,2,4),cex.main=1.1)
2005 Aug 23
3
Plotting using image files
This is a strange request, but I want to build a scatterplot using different image files (jpegs, gif, etc.) as the plot symbols. I have thought about setting this up using a very large layout matrix, but I thought someone might have a better approach. Furthermore, is there any way to have R paste an image file into a specific coordinate within a scatterplot?
Thanks in advance,
Mike
Mike
2009 Apr 16
3
segment between points on different plots
Hi,
I need to draw a line segment between two points on different plots in the
same multigraph.I've tried looking at the zoominplot function in plotrix but
havent understood much.any help is appreciated
~Aks
[[alternative HTML version deleted]]
2009 Nov 30
1
Plotting color.legend() outside of plot region
...brary(TeachingDemos)
op <- par(mfrow = c(3,3), ## split region
oma = c(0,0,4,12) + 0.1, ## create outer margin
mar = c(5,4,2,2) + 0.1) ## shrink some margins
plot(1:10, main = "a", pch = 1:2, col= 1:2)
plot(1:10, main = "b", pch = 1:2, col= 1:2)
tmp1 <- cnvrt.coords( 0.5, 0, input='plt' )$tdev # save location for mtext
plot(1:10, main = "c", pch = 1:2, col= 1:2)
plot(1:10, main = "d", pch = 1:2, col= 1:2)
plot(1:10, main = "e", pch = 1:2, col= 1:2)
plot(1:10, main = "f", pch = 1:2, col= 1:2)
plot(1:10, mai...
2009 Jan 14
4
How to get legend outside of plot?
I am creating a CDF plot function more user-friendly than any default r
function. Depending upon the bimodality of the data (it is often bimodal),
or any other strange data trends, the points can end up gathering in just
about any corner of the plot. So, when I add a legend, whether I choose to
add it in the bottom right, top left, or wherever, it will sometimes end up
putting the legend right
2005 Aug 22
0
How to add legend of plot.Design function ( method=image)? (if (!.R.) )
...ermountain Health Care
greg.snow at ihc.com
(801) 408-8111
>>> Frank E Harrell Jr <f.harrell at vanderbilt.edu> 08/22/05 03:15PM >>>
Jan Verbesselt wrote:
[snip discussion of subplot not being in R]
While R does not have the subplot function there is an alternative.
The cnvrt.coords function in the TeachingDemos package has an example
(the bottom set) of doing a rough equivalent to subplot. This idea
could
be used to implement what you want (margins and text sizes may need
adjustment).
Hope this helps,
2006 May 12
1
inches to centimeters in Graph settings
Hi R users,
I made a few research on how to convert inches into centimeters for graphics
settings (especially width and height of the graphic device).
Apart from the function layout() wich can be settled in centimeters using
lcm(), I found that writing a function that convert centimeters into inches
(i.e. x/2.54) was probably the best answer.
Is there somewhere any parameter that could help
2006 May 29
2
line over multiplot
Dear Listmembers,
I do have a multiplot with 1 row and 4 columns (4 scatter plots with
same x- and y-axe plotted in one row). I would like to draw a horizontal
line across the whole multiplot at a certain y-value. Unfortunately the
normal abline command stops between the plot.
I hope my problem is clear and there is somebody who can help me
Thanks in advance
Thomas H.
2006 Oct 09
2
lines at margin?
Hi list,
I want to add some lines at margin area of one figure. mtext could add text
to these margins, can I add lines with different lty parameters? Thanks,
mike
[[alternative HTML version deleted]]
2005 Dec 06
2
figure with inset
I am trying to plot a figure within a figure (an inset that shows a closeup of
part of the data set). I have searched R-help and other sources but not found a
solution.
What I would like to do is
(1) produce a plot
(2) specify a window that will be used for the next plot (in inches or using the
coordinate system of the plot produced in (1)
(3) overlay a new plot in the window specified under (2)
2008 Apr 07
2
How to add background color of a 2D chart by quadrant
Hi,
I have a 2D chart that is divided into four quadrants, I, II, III, IV:
plot(1:10,ylim=c(0,10),xlim=c(0,10),type="n")
abline(v=5,h=5)
text(x=c(7.5,7.5,2.5,2.5),y=c(2.5,7.5,7.5,2.5),labels=c("I","II","III","IV"))
I would like to fill each quadrant with a background color unique to the
quadrant. Does anyone know how to do this in R?
Thanks,
--
2006 Jun 02
2
plot with different color
Hi how can I plot a series of number as a line, but
with lines above a threshould as one color, and with
lines below the threshold as another color. for
example, a numeric vector: rnorm(1:100), and plot
these numbers in the original order, but lines above
the horizontal line at 0 are in red, and lines below
in blue?
Thanks
2007 Oct 10
2
Deleting the White Space in an R graph
Hi All,
Is there a way we can delete the empty white space around when we generate any graph/map using R? The final output should be onaly a picture with no white spaces all around.
Cheers,
Pratap
---------------------------------
5, 50, 500, 5000 - Store N number of mails in your inbox. Click here.
[[alternative HTML version deleted]]
2007 Dec 18
1
Multiple plots with single box
Hello,
I am trying to display some harmonic functions in a plot. The kind of
display I have in mind is like the one that cn be obtained by a call
to plot.ts with plot.type = "multiple". The only difference is that I
want a single box containing all the plots instead of one box per
plot. I thought box(which = "outer") would have done the job, but it
didn't.
Below is the
2006 Jul 08
2
Adding Lines to Plot
This seems like a question that I should be able to answer on my own
but after looking at the documentation I cannot seem to find the
correct method.
How do I add lines to a bar plot that extend from the vertical axis?
For example, my vertical axis is numbered in increments of 10 and I
would like these to go across the whole graph.
Also, is there a way to have R label the value of each bar so
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