I would like to build the function f (x, y) using fill.contour () in R and add a line / curve to define points where the value of the function is 0. To give an example, let's say that the values for my function are the values in the set data of the volcano and instead of searching f (x, y) = 0, we want to add a line / curve to determine where the volcano value is 500. How can I do this? The following code correctly adds a point at point X = 500 and Y = 500. But how can I add a line so that only the points where volcano = 500 are connected by a line? I would like to use only basic graphics.
x <- 10*1:nrow(volcano) y <- 10*1:ncol(volcano) filled.contour(x, y, volcano, color = terrain.colors, plot.axes = { axis(1); axis(2); points(500, 500)})
, :
#create a new plot contour(x,y,volcano) #use .filled.colour instead of filled.contour .filled.contour(x, y, volcano,levels=seq(90,200,1),col=terrain.colors(109)) # add a contour plot with specific levels on top of the filled contour contour(x,y,volcano, level=130,add=T)
, vectoor : level = c (130,150) 130 150
, ads.contour , fill.contour, (. help (fill.contour)).
.
Source: https://habr.com/ru/post/1655881/More articles:Can Java compile source code without JVM? - javaПопытка получить мой IPv4-адрес получает VirtualBox IPv4 - vb.netHow to implement toString to convert a number to a string? - javascriptPrint the length of a sequence using CIGAR - pythonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1655880/how-to-add-lines-to-contour-plot-in-python-matplotlib&usg=ALkJrhhgIrU58TUI-nHG2AvP_3aPOXa5WAiOS 10 push-уведомления - как работает функция willPresentNotification и didReceiveNotificationResponse? - iosPython - reading a UTF-8 encoded string byte - pythonWhat is the difference between AfterContentChecked and AfterViewChecked in Angular2? - angularthe sum of a column of type "float64" in pandas returns float instead of numpy.float64 - pythonIndexdb DOM Exception 18 iOS 10 Security Iframe - javascriptAll Articles