Displaying 20 results from an estimated 3000 matches similar to: "draw borders of bars inside of the rectangles in a barplot"
2018 May 21
0
draw borders of bars inside of the rectangles in a barplot
I recommend instead of no border, that you use a border with the same
color as the fill.
I do this in the likert functions in the HH package.
Rich
On Mon, May 21, 2018 at 10:59 AM, Martin Batholdy via R-help
<r-help at r-project.org> wrote:
> Dear R-users,
>
> I want to draw a barplot with beside=TRUE.
> One halve of the bars are drawn with a border, while the other halve are
2018 May 31
2
How to alpha entire plot?
I have two chromatograms I want plotted on the same axes.
I would like the plots to be transparent, so the first chart is
not obscured.
I have tried adjustcolor(..., alpha.f=0.3), the problem is that
my chromatogram is so dense with datapoints that they
overlap and the entire graph just ends up a solid color. The
second histogram still obscures the first.
Consider this example:
col1 <-
2004 Apr 09
1
rectangles without borders
Hi,
I want to draw rectangles with "rect" without borders, but with
shading (ie setting density). ?rect says
lty: line type for borders; defaults to '"solid"'.
but if I set it to 0, the border disappears, but the shading also
vanishes! But the above says that lty is the line type for BORDERS,
and does not mention density at all -- how do I get around this?
2008 Dec 23
1
Borders for rectangles in lattice plot key
Hopefully an easy question. When drawing a rectangles in a lattice plot
key, how do you omit the black borders?
Here is an example adapted from one on the xyplot help page:
bar.cols <- c("red", "blue")
key.list <- list(
space="top",
rectangles=list(col=bar.cols),
text=list(c("foo", "bar"))
)
barchart(
yield ~ variety | site,
2012 Aug 22
1
Controlling line-join style in Lattice
R users,
I am creating a series of scatterplots with Lattice's xyplot(). Some of the plotting symbols are squares with thick borders. The corners of the squares are rounded by default; I would like them to be square. In base graphics this is easily done with par(ljoin = "mitre"), and in grid graphics with gpar(linejoin = "mitre"). Is there an analogous parameter in
2005 May 27
2
Round a line
R-help,
I have lloked in the archives found no answer to how to round the line
joint.
I have usedthe arguments lnd, ljoin in par but I get no differences in
the plotting.
x=1:10
par(ljoin="round",lend="round")
plot(x,sin(x),type="l",lwd=2)
Any suggestions?
I run on a Windows XP machine.
> version
_
platform i386-pc-mingw32
arch
2006 May 21
1
print.trellis(..., draw.in=...)
A year ago I had posted this code
https://stat.ethz.ch/pipermail/r-devel/2005-June/033508.html
and the associated discussion was that there would be a print.trellis
argument that could be used to eliminate the need for with.vpPath
or with.viewport there. I assume that that is what draw.in= in
print.trellis is for. When I try it I get an error. I did notice that
?print.trellis says draw.in=
2008 Jan 15
1
navigating ggplot viewports
list(...)
I can not get at the grid viewports in a ggplot2 plot.
I know there is supposed to be a viewport called "panel_1_1" but
downViewport() can't find it. Has the viewport been popped?
I had a quick look at the functions involved (eg ggplot_plot)
but there is no obvious problem there.
> library(ggplot2)
> qplot(1:10, 1:10)
> current.viewport()
viewport[ROOT]
>
2006 May 13
2
windows( ... ,rescale="fixed") bug (PR#8857)
Full_Name: Gerhard Thallinger
Version: 2.3.0; 2.2.0
OS: Windows XP
Submission from: (NULL) (212.183.54.87)
Invoking windows() with the parameter rescale="fixed" followed by plot.new()
or any other plot command causes very often the following error:
windows(width=7, height=7, rescale="fixed");plot.new()
Error in plot.new() : outer margins too large (fig.region too small)
2017 Jul 23
0
par(mfrow) for heatmap plots
The answer is "don't do that" because that function abuses par. Use lattice or ggplot2 with grid graphics to plot multiple heatmaps.
https://stackoverflow.com/questions/15114347/to-display-two-heatmaps-in-same-pdf-side-by-side-in-r
--
Sent from my phone. Please excuse my brevity.
On July 23, 2017 5:11:32 AM PDT, Brian Smith <bsmith030465 at gmail.com> wrote:
>Hi,
>
2018 May 18
3
drc, ggplot2, and gridExtra
I have dose response data I have analyzed with the 'drc' package.
Using plot() works great. I want to arrange my plots and source
data on a single page. I think 'gridExtra' is the usual package for
this.
I could use plot() and par(mfrow=...), but then I can't put the source
data table on the page.
gridExtra provides grid.table() which makes nice graphical tables. It
2011 Jul 01
1
beginner question - effective way to chart sleep habits
Hi - beginning R user question here - each day, over the course of several
months, I've tracked the time I go to bed, the time I wake up, and my hours
spent sleeping. What would be a good way to display this information? I
think it would be ideal to show something resembling a bar and whisker graph
for each day that would show the interval of hours spent asleep (or perhaps
just a bar
2017 Jul 23
3
par(mfrow) for heatmap plots
Hi,
I was trying to use par(mfrow) to put 4 heatmaps on a single page. However,
I get one plot per page and not one page with 4 plots. What should I
modify? Test code is given below:
test = matrix(rnorm(60), 20, 3)
pdf(file='test.pdf',width=10,height=8)
par(mfrow=c(2,2))
heatmap(test)
heatmap(test)
heatmap(test)
heatmap(test)
dev.off()
thanks!
[[alternative HTML version deleted]]
2001 Feb 26
2
Mono wavs with b4
When I encode a monophonic wav file, I would expect the resulting ogg file
to be at about half the bit rate specified on the command line, as stated in
the "oggenc -h" help text: "The 6 modes are approximately 112, 128, 160,
192, 256, and 350 kbps (for stereo 44.1kHz input. Halve these numbers for
mono input).".
This doesn't seem to be happening, though. I took a 16-bit,
2015 May 18
4
How best to get around shadowing of executables by system()'s prepending of directories to Windows' PATH?
My question:
On Windows, R's system() command prepends several directories to those
in the Windows Path variable.
>From ?system
The search path for 'command' may be system-dependent: it will
include the R 'bin' directory, the working directory and the
Windows system directories before 'PATH'.
This shadows any executables on the Path that share a
2008 May 02
1
Error in downViewport.vpPath(vpPathDirect(name)
Hi,
I am having trouble plotting a series of dendrograms using lattice and grid
code as found in Paul Murrells book R Graphics.
This is the error message I recieve:
Error in downViewport.vpPath(vpPathDirect(name), strict, recording =
recording) :
Viewport 'plot1.panel.1.1.off.vp' was not found
I have attached the code and also my data file. Should anyone have any
suggestions then
2018 May 18
0
drc, ggplot2, and gridExtra
On Fri, 18 May 2018, Ed Siefker wrote:
> I have dose response data I have analyzed with the 'drc' package.
> Using plot() works great. I want to arrange my plots and source
> data on a single page. I think 'gridExtra' is the usual package for
> this.
>
> I could use plot() and par(mfrow=...), but then I can't put the source
> data table on the page.
>
2007 Dec 26
1
seekViewport error
Why does the seekViewport at the bottom give an error?
> xyplot(Sepal.Length ~ Sepal.Width, iris, group = Species, col = 11:13,
+ auto.key = TRUE)
> grid.ls(view = TRUE)
ROOT
GRID.rect.89
plot1.toplevel.vp
plot1.xlab.vp
plot1.xlab
1
plot1.ylab.vp
plot1.ylab
1
plot1.strip.1.1.off.vp
GRID.segments.90
1
plot1.strip.left.1.1.off.vp
2007 Apr 18
3
Problems with the Speex Jitter Buffer
Hi,
I am using the JitterBuffer. Since there is not so much documentation I
think I dont use it in a correct way. All the packets are recieved (I
control the sequence numbers) but the JitterBuffer often tells me he has
no packet. I am using it in the following way:
I am not sure if I use the ticks correctly but I think it can be set to
20(msec).
It is set as a Member in my class and i
2023 Mar 07
1
insert hyperlink into svg graphic
This was actually the first thing that ChatGPT debugged for me.
The issue was that I was able to click on the link when I displayed the raw SVG in the browser (you can use that to test whether the syntax is even correct), but not when the svg displays inside a html page with the <img ...> tag.
ChatGPT correctly identified the issue and suggested a solution using <object ...> tags