Skip to content

Do we expect this when we plot the map of faux_cell? #235

Closed

Description

@GegznaV

@bryanhanson, do we expect to see this when we plot faux_cell? Shouldn't we see some larger structures like in chondro? It seems a lot of noise here. Isn't something wrong here?

library(hyperSpec)
plotmap(faux_cell)

image

Activity

  1. added
    Topic: datasets 📅
    Type: question ❔
    on Jul 29, 2020
  2. bryanhanson commented on Jul 29, 2020

    @bryanhanson
    Collaborator
  3. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    I added code to reproduce the plot. I'm wondering, if something isn't lost in the code.

  4. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    I mean, isn't something lost in the code that generates the faux_cell?

  5. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    For reference:

    library(hyperSpec)
    plotmap(chondro)

    image

  6. cbeleites commented on Jul 29, 2020

    @cbeleites
    Owner

    plotmap(spc) plots the average intensity of each spectrum in spc.

    • for chondro, we have mostly continuous changes here (I'd suspect them to be related to a slight curvature of the sample and resulting differences in focusing).
    • for faux_cell, the overall intensity of the "raw" spectra is driven by the differences between baselines, which are random and uncorrelated between the spectra.

    So yes, the plot is correct.

    (You'd see structure e.g. with plotmap(faux_cell[,,1200]))

  7. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    OK, the following code gives:

    mapcols <- c(cell = "aquamarine", matrix = "aliceblue", nucleus = "dodgerblue")
    plotmap(faux_cell, region ~ x * y, col.regions = mapcols)

    image

    But this means, that chondro could not be replaced with faux_cell as easily as just by changing the dataset's name.

  8. bryanhanson commented on Jul 29, 2020

    @bryanhanson
    Collaborator

    Good point @GegznaV .

  9. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    On the other hand, doesn't region ~ x * y show that values of region are mapped and not the values of spectroscopic signals (not spc)? Doesn't it indicate, that the spectroscopic signal has no (or little) information on the parts of the cell?

  10. bryanhanson commented on Jul 29, 2020

    @bryanhanson
    Collaborator

    @GegznaV you are right about how the map is created, it assumes the regions are known in advance. So probably we need a better or an additional example. Claudia noted above that plotmap(faux_cell[,,1200]) shows the structure (to a degree).

  11. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    1200 is good enough. In the examples of plotmat, 1003 is indicated. So, it's better to use 1200 there.

    Thank you, @bryanhanson

  12. GegznaV commented on Jul 29, 2020

    @GegznaV
    CollaboratorAuthor

    The "secret" wavenumbers that make sense in the map are 800, 1200, 1500 1/cm.

    qplotmixmap(faux_cell[, , c(800, 1200, 1500)],
      purecol = c(matrix = "red", cell = "green", nucleus = "blue")
    )

    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Topic: datasets 📅Type: question ❔

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions