Displaying 20 results from an estimated 10000 matches similar to: "Fine control of plot"
2007 Nov 16
1
graphics - line resolution/pixelation going from R to windows metafile
I have a recurring graphics issue that I've not been able to resolve with
R. If I make a series of regression estimates and then plot the estimated
function for the regression lines over a scatter plot of the data, e.g.,
using a sequence of plot( ) and lines ( ) similar to those below
2008 Nov 19
1
Buggy trellis.focus() with xyplot ?
Hi:
(Tried to find a bug report about this issue, but was unable to find it, let
me know if this is a known issue)
I have been working on an interface to highlight xyplot panels on mouse
overs in JavaGD but I have stumbled with what seems to be a bug in
trellis.focus.
I am using R 2.8 with lattice 0.17-15
*** To replicate the bug:
1.- display an xyplot. For example, from the xyplot help page:
2012 Mar 23
2
show and produce PDF file with pdf() and dev.off( ) in function
Hi all,
I know how to use pdf() and dev.off() to produce and save a graph.
However, when I put them in a function say
myplot(x=1:20){
pdf("xplot.pdf")
plot(x)
dev.off()
}
the function work. But is there a way show the graph in R as well as saving
it to the workspace?
Thanks.
casper
-----
###################################################
PhD candidate in Statistics
School
2004 Apr 15
1
tapply() and barplot() help files for 1.8.1
Hi,
I've just upgraded to 1.9.0 and one of my Sweave files that produces a
number of barplots in a standard manner now produces them in a
different way. I have made a couple of small changes to my code to
get the back the output I was getting before upgrading and now (mostly
out of curiosity) would like to understand what has changed.
I *think* I've tracked it down to tapply() and/or
2013 Jan 04
1
group variables in classes
Dear R users,
I want to group the d values in classes. If I use this script I have a
problem.
classes <- function(x, n){
s <- seq(0, ceiling(max(x)), by = n)
factor(n*findInterval(x, s), levels = s)
}
z<-sapply(tapply(t$d,t$plot,function(x) classes(t$d, 4)),table)
z<-cbind(z)
Thank you!
Initial data:
nr x y d plot plotn xplot yplot
121 162 50.26989 46.230
2011 Aug 02
1
Need to compute density as done by panel.histogram
Hi,
This might be a simple problem but I don't know how to calculate a random
variable density the way panel.histogram does it before it creates the
actual density rectangles. The documentation says that it uses the density
function but the actual code suggests that the hist.constructor function
(which does not seem to be easily accessible).
Any suggestion for computing the density values of
2013 Feb 23
1
Help with layout
Dear R users.
I'm new with layout and I can't figure how to teak my graphs.
I have the following code:
layout(matrix(c(1,2,3), 3, 1, byrow = TRUE), heights=c(0.3,0.3,0.6))
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
boxplot(rnorm(100), horizontal=TRUE, axes=FALSE)
hist(rnorm(100))
Is it possible to have the two horizontal boxplot closer to each other?
With regards,
Phil
2012 Jun 03
1
fine control of plots after use of layout(matrix ...
Sir,
I would like to create a combined line-bar plot, with the line up top and
bar plot below, but with the x-axes suppressed on the topmost plot, the
line and bar plot areas joined by a common line, and the x-axes (of dates)
joined to the bottom part of the bar plot.
i have been able to format the area using the layout(matrix( ... commands,
but cannot figure out the final step.
here's the
2008 May 26
1
Sweave does not respect width
Hello,
I'm learning to use Sweave, and I've run into a problem: sometimes, when
entering long lines of input and using long variable names, Sweave will not
insert linebreaks in a way that respects the width setting. This causes
undesirable overflows into the margins in the latex file. For example,
consider the following document (adapted from the GLM example):
\documentclass{article}
2015 Sep 08
3
sieve_extprograms - double linebreaks at filtering
Hello List,
i have a problem when using sieve-plugin sieve_extprograms. I use
dovecot 2.2.18 and bundled pigeonhole 0.4.6 (Ubuntu 14.04.3 LTS)
i have enabled sieve_extprograms and vnd.dovecot.filter to send mail to
user-defined script and get changed content back.
My script previously was used with procmail and is working fine.
Using same script with vnd.dovecot.filter leads to odd behavior.
I
2007 Jul 19
1
write.table linebreaks
Hello R users,
I am a newby using R 2.5.0 on a Apple Power Book G4 with Mac OS X
10.4.10.
when I use the write.table function, I always get the output in Unix
linebreaks that I have to change to McIntosh linebreaks to be able to
Import the data in Excel 2004 for Mac.
Is there a possibility to do this automatically in R and respectively
in the write.table function?
Thanks in advance.
2008 Aug 01
1
parameters
<% for post in @posts %>
<%= link_to_remote "Edit", :url => { :controller => "threads", :action
=> :new_req }, :with => "''description=#{post.description}''"
<% end %>
When I make a post with the form and enter a description like such:
Description text_area:
this is a description
that has linebreaks,
or... at least,
I
2013 Oct 04
3
Trying to avoid nested loop
Dear R users.
I'm trying to avoid using nested loops in the following code but I'm not sure how to proceed. Any help would be greatly appreciated.
With regards,Phil
X = matrix(rnorm(100), 10, 10)
## Version with nested loopsresult = 0
for(m in 1:nrow(X)){ for(n in 1:ncol(X)){ if(X[m,n] != 0){ result = result + (X[m,n] / (1 + abs(m - n))) } }}
## No loop-sum(ifelse(M
2007 Aug 21
2
in place editor with scriptaculous
I have an issue with line break handling.
When I display contents of a textarea, I use nl2br to show linebreaks
that the user has made. The problem comes the second time they make an
edit, since the <br> code still appears in the inPlaceEdit box...
which will no doubt confuse my users...
Any way around this?
--~--~---------~--~----~------------~-------~--~----~
You received this message
2004 Apr 27
5
parsing a data file
Hi,
I need to parse a data file (output of a measuring device) of the
following format:
BEGIN RECORD [first record data] RECORD [second
record data] RECORD
[third record data]
END
Line breaks can (and do ;-() occur anywhere. White space behaves very
much like TeX, eg it is not important whether there are one or more
spaces or linebreaks as long as there is one of them. It is a text
file, not
2001 Feb 03
1
WIN32 files have unix-style linebreaks?
Is it just me or doesn't all the Win32 files have unix-style EOL codes?
I downloaded the nightly CVS tarball and tried to compile it in Visual
Studio 6 but it failed partly because of that reason. It didn't even want
to recognize some of the files (ie *.dsp files).
It's a fairly simple operation to fix the problem but I don't know if it's
my fault or if it realy something in
2018 May 04
2
Is a password required for the Linux account?
On Fri, 04 May 2018 14:47:02 +0000
Chris Weiss via samba <samba at lists.samba.org> wrote:
> On Fri, May 4, 2018 at 9:07 AM Gilles via samba
> <samba at lists.samba.org> wrote:
>
> > On 04/05/2018 15:46, Chris Weiss wrote:
> > > technically it does not need a passwd, and you don't need to do
> > > password sync. i should work just fine.
> >
2001 Jul 23
2
hang-up with log="x" and segments (PR#1030)
I experienced the following problem with R 1.3.0 which is probably a
bug. The program hangs-up if 1.) a coordinate of segments is outside the
ploting region and 2.) the option log="x" is used.
##
## works fine
##
plot(1,1, xlim=c(0.5, 2), ylim=c(0.5, 2))
segments(0.5 , 1.2, 1, 0.6)
segments(0.25, 1.2, 1, 0.6)
segments(1 , 1.2, 1, 0.6)
##
## hang-up
##
plot(1,1, xlim=c(0.5, 2),
2010 May 09
1
lattice: customising panel.segments using groups
Hi,
I want to customise the segments on an xyplot. Below is a simple example
of what I'm trying to do...
#Example dataset
x <- c(-0.25, 0.25, 0.8)
y <- c(-0.5, 0, 0.75)
gp <- c("A", "I", "C")
my.data <- cbind.data.frame(x,y,gp)
#setting up the parameters to customise the lines with.
ltype <- c(1,2,3)
env.col <-
2011 Oct 21
1
lattice::xyplot/ggplot2: plotting weighted data frames with lmline and smooth
In the HistData package, I have a data frame, PearsonLee, containing
observations on heights of parent and child, in weighted form:
library(HistData)
> str(PearsonLee)
'data.frame': 746 obs. of 6 variables:
$ child : num 59.5 59.5 59.5 60.5 60.5 61.5 61.5 61.5 61.5 61.5 ...
$ parent : num 62.5 63.5 64.5 62.5 66.5 59.5 60.5 62.5 63.5 64.5 ...
$ frequency: num 0.5 0.5