Coder Social home page Coder Social logo

Comments (2)

tnagler avatar tnagler commented on June 20, 2024

Yes, the contour plots don't use the variable names. If you want more control, you need to write your own code. Here's an example you can use as a basis:

# some 3-dimensional vine 
d <- 3
strucmat <- matrix(c(3,   1, 2, 0, 2, 1, 0, 0, 1), 3, 3)
fammat   <- matrix(c(0,   1, 23, 0, 0, 3, 0, 0, 0), 3, 3)
parmat   <- matrix(c(0, 0.3, -3, 0, 0, 1, 0, 0, 0), 3, 3)
par2mat  <- matrix(c(0,   0, 0, 0, 0, 0, 0, 0, 0), 3, 3)
RVM  <- RVineMatrix(strucmat, fammat, parmat, par2mat)
RVM$names <- c("Var 1", "Var 2", "Var 3")

# plots
par(mfrow = c(d - 1, d - 1))
for (j in seq.int(2, d)) {
  for (k in seq_len(d - 1)) {
    if (k < j) {
      contour(
        BiCop(RVM$family[j, k], RVM$par[j, k], RVM$par2[j, k]),
        xlab = RVM$names[RVM$Matrix[j, k]],
        ylab = RVM$names[RVM$Matrix[k, k]],
        main = VineCopula:::get_name(k, d + 1 - j, RVM)
      )
    } else {
      plot.new()
    }
  }
}

from vinecopula.

hayet-ben-haj-hamida avatar hayet-ben-haj-hamida commented on June 20, 2024

Thank you very much, just for one variable I have in the plot "," that separates the two word of the name of the same variable

from vinecopula.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.