Displaying 20 results from an estimated 100 matches similar to: "Question regarding R plot"
2017 Jun 07
2
purrr::pmap does not work
Hi All,
I try to do a scatterplot for a bunch of variables. I plot a dependent
variable against a bunch of independent variables:
-- cut --
graphics::plot(
v01_r01 ~ v08_01_up11,
data = dataset,
xlab = "Dependent",
ylab = "Independent #1"
)
-- cut --
It is tedious to repeat the statement for all independent variables. Found
an alternative, i.e. :
-- cut --
mu
2011 Aug 16
2
postscript( does not save the plot
Dear all,
I am using the following code to write the plot to an eps format
postscript(file="test.eps",horizontal=FALSE)
2009 Jul 15
3
abline(v= x) in plot with time formated xaxis not working
Hi,
I try to create a vertical line in my plot, which has a xaxis comprising
time formated data.
This is what I tried:
----------------
y<-152833
x<-strptime(y, format="%H%M%S")
abline(v=x, col="red")
----------------
for some reason, it doesn't work and no error msg is displayed...
I hope someone can tell me what I do wrong, or maybe an alternative.
Thanks
2012 Dec 14
1
Plotting from a matrix, where column 1 is your x value
Hello,
I'm very new to R, and have managed to plot xy graphs, but can't seem to
plot a matrix properly.
The first column is my time points, and the following columns 2-4 are the
replicates of my experiment.
I've tried using row.names=1 to make the first column the value for that row
(whereas before I had 1-31 sequence) and then my 1st column) but I can't
work out how to tell it
2006 Aug 10
0
Updating a database record using Javascript variables
I need to update a record in a table based on a event that occurs in the
View. I believe the update action should occur in the controller. I
think I need to call the controller action from the View and pass data
that is stored in a Javascript variables as a parameter, but I am not
sure how to do it. Can someone show me how I should be doing this?
Below is a simplified version of the code I
2005 Aug 18
8
Extending a js class
It''s been a few days since I posted my last two emails (of which, no one
replied to) so I''ve gone ahead and coded a working slider class as well
as a ''resizeable'' class that allows a user to drag and resize the
element. I also linked these two together as I want to have slider
behavior that can resize the resizeable element. The end result is both
the
2009 Aug 07
3
How do I plot a line followed by two forecast points?
Good day all,
I'm trying to plot a continuous line plot, which is followed by two
forecast points eg. one forecast point is 12 months out, and another
24 months out from the last date of the line plot.
In my attempts so far, the second plot (the forecast points) is scaled
against a new axis scale, thus the two plots are not directly
comparable (I need the forecast points to be scaled
2012 Oct 30
1
Is there an lm() equivalent of panel.lmline()?
panel.lmline returns intercept and slope of y ~ x subsetted to the
combination of conditioning factors given to xyplot in lattice.
for instance:
xyplot(Xvalues ~ log(Qvalues)|Tfac, data = df7, panel = panel.lmline)
I am looking to find the equivalent formulation for lm() proper. If I do
this:
lmcal <- lm(Xvalues ~ log(Qvalues):Tfac, data = df7)
Only one value of the intercept is returned.
2009 Jul 11
2
maximum/minimum value of a function
Dear All,
Does anyone know how to get the maximum/minimum value of a function using R,
I think there should be an instruction, but i can not find it in help files
Thank you in advance for your help :)
[[alternative HTML version deleted]]
2007 Jul 25
3
Constructing bar charts with standard error bars
I am new to R.
I want to graph group data using a "Traditional Bar Chart with Standard
Error Bar", like the kind shown here:
http://samiam.colorado.edu/~mcclella/ftep/twoGroups/twoGroupGraphs.html
Is there a simple way to do this?
So far, I have only figured out how to plot the bars using barplot.
testdata <- scan(, list(group=0,xbar=0,se=0))
400 0.36038 0.02154
200 0.35927
2009 Jun 27
1
Creating Excel-Charts via RDCOMClient
Hi R-users!
I'm trying to create an easy Excel chart using the package RDCOMClient. The
following example is working fine:
#-------------------------------------------------------------------
library(RDCOMClient)
xlLocationAsObject <-2
xlXYScatterSmoothNoMarkers <- 73
ex <- COMCreate("Excel.Application")
wb <- ex[["Workbooks"]]$Add()
sh <-
2012 Jun 10
3
Data.frames can not hold objects...What can be done in the following scenario?
R-Help community,
I understand that data.frames can hold elements of type double, string
etc but NOT objects (such as a matrix etc). This is not convenient for
me in the following situation. I have a function that takes 2 inputs
and returns a vector:
testfun <- function (x,y) seq(x,y,1)
I have a data.frame defined as follows:
testframe<-data.frame(xvalues=c(2,3),yvalues=c(4,5))
I would
2014 Jul 17
3
[LLVMdev] Use of Smart Pointers in LLVM Projects
On Thu, Jul 17, 2014 at 4:45 PM, Alp Toker <alp at nuanti.com> wrote:
>
> On 18/07/2014 02:21, David Blaikie wrote:
>>
>> Are people OK with/prefer the use of owning smart pointers in APIs?
>
>
> I think smart pointers are great to use for storage, or as struct members
> where there's actually a clear need for ownership. Just by virtue of getting
> rid of
2012 Feb 07
6
Setting up infile for R CMD BATCH
Suppose I create an R program called myTest.R with only one line like
the following:
type <- as.integer(readline("input type (1: type1; 2: type2)? "))
Then I'd like to run myTest.R in batch mode by constructing an input
file called answers.R with the following:
source("myTest.R")
1
When I ran the following at the terminal:
R CMD BATCH answer.R output.Rout
it failed
2007 Jun 12
0
distribution graph
The following gives two functions for producing distribution graphs:
distribution-graph
produces a single graph, and
multiple.distribution.graph
produces a number of graphs side by side.
Regards,
Tore Wentzel-Larsen
statistician
Centre for Clinical research
Armauer Hansen house
Haukeland University Hospital
N-5021 Bergen
tlf +47 55 97 55 39 (a)
faks +47 55 97 60 88 (a)
email
2011 Mar 19
1
GAMLSS Question
Dear All:
I have succeeded in fitting a GAMLSS.dist model to growth data I am working
with it.
My aim is to create a matrix of predicted percentiles and the corresponding
the fitted model's sigma mu nu by agebins.
Q:
How do it generate these parameters as in L M S per Cole and Green 1992?
Here are my working codes.
Name of fitted model is gamlssfit
> Agebin<-seq(6,36,6)
2014 Jul 17
8
[LLVMdev] Use of Smart Pointers in LLVM Projects
There seems to be some uncertainty about the use of smart pointers
(previously OwningPtr, now std::unique_ptr and std::shared_ptr
predominantly) in the LLVM project as a whole, so here's a thread to
discuss/clarify/etc the project preferences/direction with regard to
smart pointer usage.
For some context, see discussions in LLVM r212403 and Clang r213307.
The basic question here seems to be
2016 Jul 09
2
Red Neuronal complicada categorías
Hola,
Esta es una forma de hacerlo...
Mira que lo primero que he modificado es el fichero "x.csv" para sustituir
los espacios en los nombres por "_". Y también he quitado los acentos y las
eñes...
He utilizado el paquete RNNS y la función "mlp()" para ajustar la red.
#-------------------------------------------
> x <- read.csv("x.csv",
2016 Jul 07
2
Red Neuronal complicada categorías
Estimados
Les consulto por redes neuronales, hay diversos artículos como los siguientes (el último tienen un error actualmente). Pero mi pregunta va un poco por otro lado.
http://www.r-bloggers.com/build-your-own-neural-network-classifier-in-r/
http://www.r-bloggers.com/classification-using-neural-net-in-r/
Básicamente se puede calcular un valor, por ejemplo doblar 2,4 grados a la derecha, luego 1
2004 May 31
2
[OT] "plot y against x"
Hi Folks,
I'd be grateful for some views on the following.
When I say "plot y against x" I mean that y is on the vertical
axis and x is on the horizontal axis. I acquired this usage so
long ago that I can no longer remember how I acquired it, and
therefore can not cite my "authority" for my usage. There can
also be an implication that y is a function of x (or y is a