search for: x_axis

Displaying 4 results from an estimated 4 matches for "x_axis".

2025 Apr 19
1
Is it odd or not? about I() function
...d a bewildering situation, about which I am seeking help.? I wrote a following toy script which can recreate the situation. --- the script begins here --- ?? 1?? ? library(tidyverse) ?? 2?? ? library(rlist) ?? 3?? ? library(patchwork) ?? 4?? ? set.seed(42) ?? 5?? ? f <- function(x, y, z, x_axis) { ?? 6?? ??? rslt_with_I <- I(x^2 * 0.5) + I(x * y) ?? 7?? ??? rslt_without_I <- (x^2 * 0.5) + (x * y) ?? 8?? ??? out <- data.frame(rslt_without_I, rslt_with_I) ?? 9?? ??? return(out) ? 10?? ? } ? 11?? ? ? 12?? ? df <- data.frame( ? 13?? ??? x = runif(40, 0, 1), ? 14?? ??? y =...
2025 Apr 19
1
Is it odd or not? about I() function
...usly not a complete answer, but if you look at the data closely: str(dta) 'data.frame': 40 obs. of 6 variables: $ x : num 0.915 0.937 0.286 0.83 0.642 ... $ y : num 0.3796 0.4358 0.0374 0.9735 0.4318 ... $ z : int 1 1 1 1 1 1 1 1 1 1 ... $ x_axis : int 1 2 3 4 5 6 7 8 9 10 ... $ rslt_without_I: num 0.7657 0.8474 0.0516 1.1533 0.483 ... $ rslt_with_I : 'AsIs' num 0.765658.... 0.847406.... 0.051648.... 1.153295.... 0.482993.... ... you'll see that the two variables have different *classes*. Your '==' tes...
2008 May 18
3
two curves at one graph
i try to use par(new=TRUE) i get them at the same graph but the y_axis and x_axis are drowen with two unevenly graduations that graph become unreadable. -- View this message in context: http://www.nabble.com/two-curves-at-one-graph-tp17307590p17307590.html Sent from the R help mailing list archive at Nabble.com.
2008 Mar 28
1
background color in scatterplots
Dear R community, I have a scatterplot with multiple vertical ablines. I wish to color each interval between two ablines in a different color... Could you please indicate me how to do this efficiently? Thank you! Georg. ******************** Georg Ehret Johns Hopkins Baltimore [[alternative HTML version deleted]]