Displaying 20 results from an estimated 6000 matches similar to: "Filling In Grid based on 0 and 1"
2007 Aug 06
1
Focus problem for shaded windows
>> today, I noticed a problem in focus handling for shaded windows which is
>> pretty easy to reproduce:
>>
>> - Disable "Click to focus"
>> - Shade a window
>> - Hover another window
>> - Hover back to the window frame of the shaded window
>> - Press Ctrl+Alt+S
>>
>> Expected behaviour would be that the shaded window is
2007 Jun 25
1
Focus problem for shaded windows
Hi,
today, I noticed a problem in focus handling for shaded windows which is
pretty easy to reproduce:
- Disable "Click to focus"
- Shade a window
- Hover another window
- Hover back to the window frame of the shaded window
- Press Ctrl+Alt+S
Expected behaviour would be that the shaded window is unshaded. What
happens is that the last active window is shaded.
I investigated this a
2011 Apr 20
1
How to check if a value of a variable is in a list
Hi all,
I am working with some social network analysis in R and ran into a problem I
just cannot solve.
Each observation in my data consists of a respondent, some characteristics
and up to five friends. The problem is that all of these five friends might
no show up later as a respondent (observation). Therefore I might not have
characteristics on all the friends listed in the data and I want to
2007 Nov 26
1
[PATCH] Don't draw shaded windows about to be destroyed
---
src/paint.c | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/paint.c b/src/paint.c
index 00cbf73..4ddd332 100644
--- a/src/paint.c
+++ b/src/paint.c
@@ -193,7 +193,12 @@ paintOutputRegion (CompScreen *screen,
if (w->destroyed)
continue;
- if (!w->shaded)
+ if (w->shaded)
+ {
+ if (w->id < 2)
+ continue;
+ }
+ else
2012 Jan 27
2
Placing a Shaded Box on a Plot
Hello,
I would like to place shaded boxes on different areas of a
phylogenetic tree plot. Since I can not determine how to find axes on
the phylogenetic tree plot I am not able to place the box over certain
areas. Below is example code for the shaded box that I have tried to
use, and the first four values specify the position.
rect(110, 400, 135, 450, col="grey",
2009 Aug 13
3
Plotting shaded areas
Hi
I would like to plot the variation of some mean values with time,
and have the standard deviation around the mean shaded on the plot.
I could not find a way to have the shaded area on the curve with the
default R commands,
do I need a special package to do that?
Or any idea of a way with the default R commands?
Many thanks
Thomas
--
Thomas Loridan
King's College email: thomas.loridan
2004 Dec 01
2
barplot() using beside=TRUE and the density argument
Hi
I am using barplot() to draw some barplots, with a matrix as the data so
that multiple bars are drawn for each data point. I want to use the
argument "beside=TRUE" to juxtapose the bars instead of stacking them.
If I execute:
barplot(data,names.arg=names,density=c(20,10),beside=FALSE)
I get the expected behaviour i.e. the bottom part of the column is
shaded 20 lines per inch, the
2011 Aug 08
2
confidence interval as shaded band (lme)
Hi all,
I?m trying to plot confidence intervals for the fitted values I get with my
lme model in R.
Is there any way I can plot this in the form of a shaded band, like the
output of geom_smooth() in ggplot2 package. ggplot2 seems to use only lm,
glm, gam, loess and rlm as smoothing methods.
Any advice on the functions I should use to accomplish this will be very
helpful.
Thank you very much.
2006 Apr 19
1
Function to approximate complex integral
I am writing a small function to approximate an integral that cannot be
evaluated in closed form. I am partially successful at this point and am
experiencing one small, albeit important problem. Here is part of my
function below.
This is a psychometric problem for dichotomously scored test items where
x is a vector of 1s or 0s denoting whether the respondent answered the
item correctly (1) or
2007 Mar 06
1
A few more bugs...
Hello,
I found a couple bugs concerning my favourite Shade/Unshade function.
1) Sometimes the shaded window gets more space than it should and, of course, nobody takes care about it, so everything
drawn on this space remains here. If I move a decorated window along, its shadow cummulates quickly to full black here.
Unfortunately, I don't know any reliable way how to reproduce this. (But it
2007 Dec 19
2
recode based on filter
Hi, I have a data frame DATA, which (simplified of course) looks like this:
know1 = c("Y","N","N","Y","N","N","Y","Y","N")
par1=c(1,4,5,3,3,2,3,3,5)
know2 = c("Y","Y","N","Y","N","N","N","Y","Y")
2023 Mar 01
1
Shaded area
Hallo
Excel attachment is not allowed here, but shading area is answered many times elsewhere. Use something like . "shading area r" in google.
See eg.
https://www.geeksforgeeks.org/how-to-shade-a-graph-in-r/
Cheers Petr
-----Original Message-----
From: R-help <r-help-bounces at r-project.org> On Behalf Of George Brida
Sent: Wednesday, March 1, 2023 3:21 PM
To: r-help at
2008 Aug 28
4
Help with shading a polygon below a segment of a curve (normal distribution)
Dear R users,
I still feel new to R so please apologize if I am doing something stupid
here. My use of the polygon() function produces a result that I cannot
comprehend: In a plot, I would like to shade the area below a normal
distribution. However, I do not want the entire area to be shaded, but
just the area on the right side of a vertical line that I draw through
the distribution (in
2006 Apr 19
4
Basic vector operations was: Function to approximate complex integral
Dear List
I apologize for the multiple postings. After being in the weeds on this
problem for a while I think my original post may have been a little
cryptic. I think I can be clearer. Essentially, I need the following
a <- c(2,3)
b <- c(4,5,6)
(2*4) + (2*5) + (2*6) + (3*4) + (3*5) +(3*6)
But I do not know of a built in function that would do this. Any
suggestions?
-----Original
2008 Jun 08
3
how to important a date file into R
Hi:
I have a data file in the following format. The first three digits stand for the ID of a respondent such as 402, 403. Different respondents may have the same ID. Followed the ID are 298 single digit number ranging from 1 to 5. My question is how to read this data file into R. I tried "scan" and "read" but they do not work because the numbers in the file are not
2002 May 19
3
How to shade part of a density plot
I'm trying to shade part of a density plot. The code I'm trying (using
the Old Faithful data as an example) is something like this:
# The Old Faithful geyser data
data(faithful)
d <- density(faithful$eruptions, bw = "sj")
plot(d)
polygon(d[d$x>4], col = "wheat")
I expected that the part of the curve to the right of 4 on the x axis
should be shaded, but nothing
2009 Oct 01
1
cdplot????
I am having difficulties interpreting a cdplot, I have a binary variable y
that I want to cdplot against a continuous variable x,below is the R command
cdplot(y~x, data=mydata)
you get a plot with a dark shaded area and a light shaded area. what do
these areas mean? and how to interpret the plot?
you help is greatly appreciated
--
View this message in context:
2009 Jun 03
1
Would like to add this to example for plotmath. Can you help?
Greetings:
I would like comments on this example and after fixing it up, I need
help from someone who has access to insert this in R's help page for
plotmath.
I uploaded a drawing
http://pj.freefaculty.org/R/Normal-2009.pdf
that is created by the following code
http://pj.freefaculty.org/R/Normal1_2009_plotmathExample.R
This will be a good addition to the plotmath help page/example.
2010 Apr 08
2
erasing an area of a graph
I have a case where the easiest way to draw a particular symbol would be
to draw something a little bigger, and then use polygon(... , col=0) to
erase the extra stuff. Just how to do this best when par('bg') =
'transparent' is, however, eluding me. I've looked through the archives
and the book R Graphics without quite seeing the light.
Help or pointers to help would be
2005 Nov 04
1
R graphics help
Halo friends,
I have a problem to solve in R graphics..
I have a matrix like
A= 2 3 4
5 6 7
8 9 4
and I like to generate the same matrix in terms of shaded circles in which the density of shading depends on the value...
for eg in the above matrix A the value 2 is a circle shaded very lightly
9 is of full dark