Displaying 20 results from an estimated 4000 matches similar to: "subplot()"
2009 Jun 25
3
grid.polygon() + color gradient
Hi,
I wonder whether there is a way to generate a polygon (a triangle in
my case) with color gradient using grid.polygon() in package grid?
I tried something like
library(grid)
grid.polygon(x=c(0, 0.5, 1), y=c(0.5, 1, 0.5), gp=gpar(col=NA,
fill=colorRampPalette(c("green", "lightgray"),
space="Lab")(200)))
But am only
2011 Oct 05
2
subplot strange behavoir
Hello,
Below is some example code that should reproduce an error I'm encountering
while trying to create a tiff plot with two subplots. If I run just the
following bit of code through the R GUI the result is what I'd like to have
appear in the saved tiff image:
x<-seq(0:20)
y<-c(1,1,2,2,3,4,5,4,3,6,7,1,1,2,2,3,4,5,4,3,6)
plot(x,y,type="l",las=1,ylim=c(0,12))
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 Jun 24
1
parallel rotated strips with color gradient
Hi,
I want to produce two parallel rotated strips with color gradient. So
far, the sample strip is something produced by this:
pushViewport(viewport(x = unit(0.638, "npc"), y =unit(0.386, "npc"),
width=.62, height=0.006, angle=137.2))
grid.rect(y=100:1/100, just="top",
gp=gpar(col=NA,
fill=colorRampPalette(c("lightgray",
2011 Dec 16
3
Multiple plots in one subplot
Hi,
I making a figure with six sub-plots using par(mfcol=c(2,3)). In the last
sub-plot I want to have two graphs instead of one. I have tried using
par(fig=x,y,z,v) but this par seems to overwrite the first par. Is there a
simple solution?
Thanks!
Anna
--
View this message in context: http://r.789695.n4.nabble.com/Multiple-plots-in-one-subplot-tp4203525p4203525.html
Sent from the R help
2013 Feb 16
1
subplot (Hmisc) and radial.plot (plotrix) problem
Folks,
I am having problems with a plot I want to create to give an impression
of changes in an ordinal scale measure (1-5) at three time points (0,
14 and 21 days). I can produce a radial plot of bare vectors but getting
this to appear on the base plot is not possible as it always seems to
end up below the plot area and even outside the plot window.
It seems I have not understood
2003 Oct 13
1
Rotate a plot, and subplot
Hi all,
Is there a way to rotate a plot, e.g. a histogram, by a certain angle
(90/180/270 degress)? I spent hours trying to figure out how this is
done, but without success.
Also, I'm looking for an equivalent to the S-Plus "subplot" command to
insert a kind of "thumbnail" graphic into a bigger one. How is this best
done in R?
Thanks for your help
Pascal
2004 Aug 20
1
Is there an alternative to subplot() of splus
Dear R-gurus,
Is there any function in R does the same thing as function subplot()in
Splus?
I am trying to post a pie chart onto the top right hand corner of
existing bar chart.
Also, Does anyone know if I can use paste() to paste the graph to
another graph?
Cheers,
Carla Chen
2007 Jul 13
1
Subplot.
Hello All,
I wanted to do many plots (in my case, wanted to get 6 histograms) on the
same figure. Is there a method in R that analogous to 'subplot' in MATLAB?
Any help will be very much appreciated.
thanks,
Suman
[[alternative HTML version deleted]]
2017 Sep 15
4
RFC: Trace-based layout.
I plan on rewriting the block placement algorithm to proceed by traces.
A trace is a chain of blocks where each block in the chain may fall through
to
the successor in the chain.
The overall algorithm would be to first produce traces for a function, and
then
order those traces to try and get cache locality.
Currently block placement uses a greedy single step approach to layout. It
produces
2006 Aug 23
1
rgl package: color of the axes
Hej,
When plotting triangles with rgl.triangles and setting the axes afterwards
with decorate3d(aspect=TRUE), the axes get the color used for the last
triangle plotted.
Example:
rgl.triangles(c(1,2,3),c(1,2,5),c(1,3,2),col="#55FF55")
decorate3d(aspect=TRUE)
Using
decorate3d(aspect=TRUE,col="#000000")
or
decorate3d(aspect=TRUE,color="#000000")
does not help,
2009 Aug 24
1
How to generate more triangles in sequences?
Hi everyone,
I want to plot some pattern. For example, I have some coding as below,
plot(0:11,type="n")
polygon(c(6,8,10), c(7,3,5),bor=6)
polygon(c(2,4,6), c(5,3,7),bor=6)
polygon(c(6,10,8), c(7,9,11),bor=6)
polygon(c(2,6,4), c(9,7,11),bor=6)
This coding will give me four triangles, but how to generate more triangles
in sequences so
that not need to mention the coordinate for each
2017 Sep 19
2
RFC: Trace-based layout.
On Mon, Sep 18, 2017 at 1:16 PM, Andrew Trick <atrick at apple.com> wrote:
>
> On Sep 14, 2017, at 6:53 PM, Kyle Butt via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> I plan on rewriting the block placement algorithm to proceed by traces.
>
> A trace is a chain of blocks where each block in the chain may fall
> through to
> the successor in the chain.
2015 Jan 12
2
Re: [RFC] mesa/st: Avoid passing a NULL buffer to the drivers
On 11.01.2015 06:05, Ilia Mirkin wrote:
> Can you elaborate a bit as to why that's the right thing to do?
>
> On Wed, Jan 7, 2015 at 1:52 PM, Tobias Klausmann
> <tobias.johannes.klausmann at mni.thm.de> wrote:
>> If we capture transform feedback from n stream in (n-1) buffers we face a
>> NULL buffer, use the buffer (n-1) to capture the output of stream n.
2012 Aug 27
1
RGL plot : lighting problem when triangle3d and persp3d are used in the same plot
Dear all,
I have tried to plot a triangular matrix with the function persp3d(rgl).
for example
z=rbind(c(1,NA,NA,NA),c(5,3,NA,NA),c(4,2,9,NA),c(8,6,5,11))
x=1:4
y=1:4
persp3d(x,y,z,color="gray")
The two extreme points are not plotted (value=1 and value=10). It seems
because the half of the matrix have 'NA' and perp3d need planar
quadrilateral face. So I decided to use the
2017 Sep 19
0
RFC: Trace-based layout.
> On Sep 18, 2017, at 5:17 PM, Kyle Butt <iteratee at google.com> wrote:
>
>
>
> On Mon, Sep 18, 2017 at 1:16 PM, Andrew Trick <atrick at apple.com <mailto:atrick at apple.com>> wrote:
>
>> On Sep 14, 2017, at 6:53 PM, Kyle Butt via llvm-dev <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>>
>> I plan on
2016 Mar 15
2
[FORGED] Different results based on the order of arguments to par
Paul,
I was trying to make a minimal self contained example, but I guess I
went too far on the minimizing. The original problem came from code
more like:
library(TeachingDemos)
hist(rexp(1000), main='')
abline( v=1, col='red')
sp.par <- subplot(hist(rnorm(100), main=''), x='topright')
op <- par(sp.par[c('usr', 'plt')])
abline(v=0,
2017 Sep 18
0
RFC: Trace-based layout.
> On Sep 14, 2017, at 6:53 PM, Kyle Butt via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> I plan on rewriting the block placement algorithm to proceed by traces.
>
> A trace is a chain of blocks where each block in the chain may fall through to
> the successor in the chain.
>
> The overall algorithm would be to first produce traces for a function, and then
>
2010 Sep 08
1
pairs and panel.smooth for two groups
Hi,
I have modified the USJudgeRatings data (available in R) to
illustrate my question.
# Use the first 4 variables of USJudgeRatings and add a group variable
with two levels
USJudgeRatings <- USJudgeRatings[,1:4]
USJudgeRatings$group <- factor(c(rep(1, 22), rep(0, 21)))
# I can draw a pairs graph where members of each group are drawn in
different colors:
pairs(USJudgeRatings[,1:4], col
2019 Jun 13
1
Question on interoperability with Nouveau
Hi guys again. A homebrew developer (homebrew is custom software made for
the switch using openGL under nouveau) reported to me that 'glGenerateMipmap'
wasn't working on yuzu (Nintendo Switch emulator). I looked into it and I
noticed all the triangle data used by nouveau to render the mipmaps was all
zeroed out, meaning that probably we don't implement the mechanism you guys
use to