Questions tagged [trellis]

Trellis is a method for visually displaying multiple complex dependencies

Trellis display is a framework for the visualization of multivariable datasets. Its most common interpretation is in the lattice package in R. The idea for trellis was originally developed in 1995 at Bell Labs, and is described here.

56 questions
5
votes
2 answers

Google Chrome localhost error NET::ERR_CERT_AUTHORITY_INVALID without option to dismiss

I am developing a website using Roots.io stack (Trellis + Bedrock + Sage). I am working, locally, on several sites and they're all working fine. Until today I reboot my computer > execute vagrant up > attempt to access the local development URL…
Spencer Hill
  • 839
  • 2
  • 12
  • 30
5
votes
1 answer

Suppress axis in lattice plot

I am using caret's featurePlot function to create a lattice plot. The X and Y axes show up in the diagonal boxes (see picture). I want to suppress these axes-- both the tickmarks and labels. Thought I could set scales$draw to NULL, but that did…
ahoffer
  • 5,758
  • 2
  • 31
  • 63
4
votes
1 answer

Mount.nfs: Connection timed out ... - Vagrant - Trellis

I'm trying to run vagrant up for the first time, but I'm getting this error: ==> default: Mounting NFS shared folders... The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o…
deleting
  • 359
  • 1
  • 7
  • 19
4
votes
2 answers

identify sub-panel in existing splom by clicking

I'd like to be able to generate a basic splom plot in R and then use my mouse to click on one of the sub-panels (panel.pairs, specifically) and have R return either the coordinates of that sub-panel, or even better, the names of the corresponding…
theEricStone
  • 191
  • 7
3
votes
2 answers

How to plot two lines by factor in a trellis graph?

Define: df <- data.frame( line1 = rep(seq(1,5,by=1),2), line2 = rep(seq(2,6,by=1),2), index = rep(seq(1,5,by=1),2), factor=rep(c("a","b"),each=5)) where line1 and line2 are two variables, say height and weight. This…
Fred
  • 1,673
  • 3
  • 21
  • 29
3
votes
2 answers

Plotting empirical and fitted semivariogram in ggplot

I am investigating spatial autocorrelation in my data using semivariograms. My data: Response <- c(21L, 36L, 30L, 29L, 30L, 45L, 100L, 0L, 0L, 0L, 0L, 0L, 59L, 18L, 24L, 23L, 26L, 29L, 23L, 21L, 14L, 30L, 43L, 14L, 8L, 0L, 0L, 0L, 0L, 0L, 23L,…
James
  • 944
  • 1
  • 11
  • 31
3
votes
1 answer

How are trellis axis limits calculated?

Say I want to create an ordinary xyplot without explicitly specifying axis limits, then how are axis limits calculated? The following line of code produces a simple scatter plot. However, axis limits do not exactly range from 1 to 10, but are…
fdetsch
  • 4,484
  • 3
  • 26
  • 49
2
votes
0 answers

R - Change key colours in ancova (HH package)

I'm using the ancova() function in R (HH package) with a factor with more levels than the default 7 colours for lattice graphics. This means that ancova() fails to plot some of my panels as it can't find a colour to use. I've tried trellis.par.set…
R_usr
  • 75
  • 5
2
votes
0 answers

trelliscopejs R package only one trelliscope figure visible in html file

I am having a problem rendering more than one trelliscopejs displays in an html file created with Rmarkdown. I'm using self_contained=TRUE in order to render displays in html. The problem is that only the first display is rendered correctly: …
balkon16
  • 1,043
  • 2
  • 10
  • 29
2
votes
1 answer

Strip with two lines title - R lattice plot

I'm having difficulties to write correctly a strip name in a lattice plot. Here is a data example: resposta<-rnorm(90) preditor1<-rep(rep(c("a","b"),each=15),3) preditor2<-rep(c("sp1","sp2","sp3"),each=30) And I'm doing the following…
Augusto Ribas
  • 231
  • 1
  • 2
  • 12
2
votes
1 answer

How do I add reference lines in trellis dot plots in R in the lattice package

The following piece of code produces a trellis dot plot exactly as I would like it, but I would like to automatically add reference lines to the four panels. I have tried searching for examples of code that will let me do this, but so far no luck. …
2
votes
1 answer

Adjust space between axis ticks in lattice

I created a simple Dotplot() using this data: d <- data.frame(emot=rep(c("happy","angry"),each=2), exp=rep(c("exp","non-exp"),2), accuracy=c(0.477,0.587,0.659,0.736), Lo=c(0.4508,0.564,0.641,0.719),…
Geek On Acid
  • 6,022
  • 3
  • 40
  • 60
1
vote
1 answer

Density plot by subgroups

I have a big data frame that look like this: GeneSymbol Sample1 Sample2 Sample3 Sample4 A value11 value12 value13 value14 A value21 value22 value23 value24 B etc. etc. B B …
Elb
  • 1,749
  • 4
  • 21
  • 32
1
vote
2 answers

Why is that Trelliscope viewer showing empty panels, no images?

I have the below data frame "p" on Pokemon. library("dplyr") library("trelliscopejs") glimpse(p) Rows: 801 Columns: 5 $ pokemon "bulbasaur", "ivysaur", "venusaur~ $ type_1 "grass", "grass", "grass", "grass~ $ attack …
Srinivas
  • 353
  • 2
  • 11
1
vote
0 answers

How to fix "vagrant up" errors when trying to set up Trellis?

I've been trying to set up a Trellis local WordPress dev environment from the Roots stack. I did all the steps from the docs, have the recommended folder structure, downloaded all the dependencies, but I still get a few errors. First I get some…
Tom
  • 357
  • 1
  • 12
1
2 3 4