lattice

Lattice Fpga Internal clock

ぐ巨炮叔叔 提交于 2020-01-06 07:27:13
问题 I'm trying to configure a lattice MachX03's internal Oscillator. I read the MachXO3 sysCLOCK PLL Design and Usage Guide* and tried using the vhdl code found on page 31 of the documente, but I keep getting this error (VHDL-1261) syntax error near COMPONENT. Can someone tell me how I can get the clock to work using VHDL? here is the code I'm trying to use: LIBRARY lattice; library machXO3; use machXO3.all; COMPONENT OSCH GENERIC( NOM_FREQ: string := "53.20"); --53.20MHz, or can select other

Multiple boxplots with predefined statistics using lattice-like graphs in r

回眸只為那壹抹淺笑 提交于 2020-01-05 12:03:15
问题 I have a dataset which looks like this VegType 87MIN 87MAX 87Q25 87Q50 87Q75 96MIN 96MAX 96Q25 96Q50 96Q75 00MIN 00MAX 00Q25 00Q50 00Q75 1 0.02 0.32 0.11 0.12 0.13 0.02 0.26 0.08 0.09 0.10 0.02 0.28 0.10 0.11 0.12 2 0.02 0.45 0.12 0.13 0.13 0.02 0.20 0.09 0.10 0.11 0.02 0.26 0.11 0.12 0.12 3 0.02 0.29 0.13 0.14 0.14 0.02 0.27 0.11 0.11 0.12 0.02 0.26 0.12 0.13 0.13 4 0.02 0.41 0.13 0.13 0.14 0.02 0.58 0.10 0.11 0.12 0.02 0.34 0.12 0.13 0.13 5 0.02 0.42 0.12 0.13 0.14 0.02 0.46 0.10 0.11 0.11

country-labels on spplot()

不打扰是莪最后的温柔 提交于 2020-01-03 19:33:40
问题 I'd like to add name-labels for regions on an spplot(). Example: load(url('http://gadm.org/data/rda/FRA_adm0.RData')) FR <- gadm FR <- spChFIDs(FR, paste("FR", rownames(FR), sep = "_")) load(url('http://gadm.org/data/rda/CHE_adm0.RData')) SW <- gadm SW <- spChFIDs(SW, paste("SW", rownames(SW), sep = "_")) load(url('http://gadm.org/data/rda/DEU_adm0.RData')) GE <- gadm GE <- spChFIDs(GE, paste("GE", rownames(GE), sep = "_")) df <- rbind(FR, SW, GE) ## working plot(df) text

Symbol fill color in lattice using auto.key

南楼画角 提交于 2020-01-03 17:14:26
问题 I'm making a plot using xyplot in lattice (R 15.2, lattice 0.20-13) in which I have several groups that I would like to distinguish by the shape of the marker. I need to use a downward facing triangle which is only available as a hollow symbol ( pch=25 ) unlike up triangle which is available as a filled ( pch=17 ) or hollow ( pch=24 ) symbol. I can specify both the outline color and the fill color for these symbols in par.settings(superpose.line()) , but when I plot an auto.key , there is no

Symbol fill color in lattice using auto.key

送分小仙女□ 提交于 2020-01-03 17:12:06
问题 I'm making a plot using xyplot in lattice (R 15.2, lattice 0.20-13) in which I have several groups that I would like to distinguish by the shape of the marker. I need to use a downward facing triangle which is only available as a hollow symbol ( pch=25 ) unlike up triangle which is available as a filled ( pch=17 ) or hollow ( pch=24 ) symbol. I can specify both the outline color and the fill color for these symbols in par.settings(superpose.line()) , but when I plot an auto.key , there is no

Grouped horizontal boxplot with bwplot

折月煮酒 提交于 2020-01-03 16:49:09
问题 I have the following code that allows grouped vertical box-plots via the bwplot function in lattice . Reproducible example.. data(mpg, package = "ggplot2") bwplot( hwy~class, data = mpg, groups = year, pch = "|", box.width = 1/3, auto.key = list(points = FALSE, rectangles = TRUE, space = "right"), panel = panel.superpose, panel.groups = function(x, y, ..., group.number) { panel.bwplot(x + (group.number-1.5)/3, y, ...) }) This works fine, but I would like the boxplots to be horizontal, so I

R levelplot: color green-white-red (white on 0) according to one variable, but show the values of another variable

北城余情 提交于 2020-01-03 05:15:44
问题 The title is pretty much self-descriptive. I want to do a heatmap-like plot with lattice, showing the data values as well, something like in here However, in my case, I want to color the plot according to one variable (fold.change), but show the values of another variable (p.value). It would be optimal that the color range is green-white-red, and the white is on 0 (negative fold.change values in green, and positive ones in red). My last question would be how to change the text size of the

R levelplot: color green-white-red (white on 0) according to one variable, but show the values of another variable

馋奶兔 提交于 2020-01-03 05:15:14
问题 The title is pretty much self-descriptive. I want to do a heatmap-like plot with lattice, showing the data values as well, something like in here However, in my case, I want to color the plot according to one variable (fold.change), but show the values of another variable (p.value). It would be optimal that the color range is green-white-red, and the white is on 0 (negative fold.change values in green, and positive ones in red). My last question would be how to change the text size of the

How to hide x-axis in lattice R

Deadly 提交于 2020-01-02 06:18:15
问题 How to hide x-axis (xlim?) in lattice xyplot? Normally with plot that would be: hist(rnorm(10,0,2), axes=F) And also global solution would be great, since I have quite few plots. I'm using the gridExtra package: grid.arrange(plot1,plot2,plot3, ncol=3) This for instance allows to hide xlab, ylab, main. pl = list(plot1,plot2,plot3) do.call(grid.arrange, lapply(pl, update, xlab="", ylab="", main="")) Sample data just in case: Data <- data.frame(x=rnorm(10,2,2),y=rnorm(10,3,3),z=rexp(10,2)) plot1

Can I use shingles from lattice in ggplot2 in R

ⅰ亾dé卋堺 提交于 2020-01-02 01:56:05
问题 It is possible to use the shingles to define specific ranges in ggplot2 . As far as i understand shingles are a way to generate groups. Can we create such shingle s and use them in ggplot2 facet_grid to obtain graphs? 回答1: Following up from the comments, ggplot can't draw shingles (in the way lattice draws shingles with special indicators in the strip) and by default doesn't have a means of producing the overlapping groups. However, I cam across this excellent PDF document which aims to