Most voted "lattice" questions
Lattice is a base package of R that allows creating graphics of type "Trellis".
Learn more…8 questions
Sort by count of
-
11
votes1
answer266
viewsHow to create Needles chart in R?
I am trying to make a chart of Needles suggested in the Matter of Non-parametric Methods in the study of Histograms. I found a command called rug(), but it seems that the idea is not that.…
-
7
votes2
answers302
viewsConnecting the points to the regression line
Suppose the following database: Income <- structure(list(X = 1:30, Education = c(10, 10.4013377926421, 10.8428093645485, 11.2441471571906, 11.6454849498328, 12.0869565217391, 12.4882943143813,…
-
6
votes2
answers1588
viewsHow do I place the inverted (decreasing) Y-axis in the R?
I’m trying to present some graphs on uniformity coefficient, but normally in this type of graph, the Y-axis is organized in descending order, from 100 to 0. I would like to know how do I perform…
-
4
votes1
answer730
viewshow to place histogram values on top of bar
I’m using the Histogram command from the Lattice library on R. I would like to know how I can put the value on top of the bars, value I speak is the histogram count. Ex:…
-
3
votes2
answers412
viewsConnecting dots to the 3d regression line
This is the 3d version of this other question. Consider the following data: Income2<-structure(list(X = 1:30, Education = c(21.5862068965517, 18.2758620689655, 12.0689655172414, 17.0344827586207,…
-
3
votes1
answer240
viewsLinear regressions in IHD with subdivided plot
Hello, good afternoon! would you like to know, how to perform a linear regression in dic with subdivided portion, detail I need the "Betas", because I intend to use the answer to predict a curve!…
-
1
votes1
answer93
viewsAdding an area shaded over a Plot in the R?
I’m making some graphs using R, and I need to make a highlight (shaded area in a given location), but I can only plot. Follow the image I can generate: The highlight has to be a rectangle that goes…
-
1
votes1
answer62
viewsDotplot in R include vertical line and dots of different colors
I needed to include in the code below a vertical line, for example, at position x = 5 and that all points with x smaller than 5 have another color, for example blue. The values of a variable can be…